To install this package, run in Emacs:
M-x package-install RET rfc-mode RET
The rfc-mode Emacs major mode is a browser and reader for RFC documents.
The package should be installed from MELPA.
Start by loading the mode:
elisp
(require 'rfc-mode)
Then set the location containing all RFC documents (the default value is the
rfc
directory in the home directory):
elisp
(setq rfc-mode-directory (expand-file-name "~/rfc/"))
RFC documents and their index will be directly downloaded from https://www.rfc-editor.org when required. Alternatively, the entire RFC collection can be downloadeded from https://www.rfc-editor.org/retrieve/bulk to ensure full access without the need for an internet connection.
Call rfc-mode-browse
to choose a RFC document to read, or rfc-mode-read
to
enter the reference of the RFC document yourself.
If you have an idea or a question, email me at nicolas@n16f.net.
rfc-mode-1.3.0.tar.lz | 2022-Oct-12 | 282 KiB |
Work in progress.
I should have released minor versions for bug fixes, but it seems everyone is
using the master
branch from MELPA, and so am I. So major only it is. I will
release a minor version if a severe issue is found of course.
rfc-mode-read
now supports a numeric prefix argument, so you can simply
type C-u 1 2 3 4 M-x rfc-mode-read
to read RFC number 1234. Also, if you
call rfc-mode-read
when point is on a number, you will be offered that
number as default. Thanks to Daniel Martín.rfc-mode-goto-section
now makes sure the title of the section is at the
top of the page, avoiding annoying edge cases where a section is at the end
of a page (thanks to Štěpán Němec).This release improves navigation and introduce section detection, thanks to Daniel Martín.
imenu
integration. If you use a graphical user interface, the menu
bar will show a new menu, "RFC Contents", with links to the
different parts of an RFC document.<Tab>~/~<S-Tab>
.g
in a rfc-mode
buffer lets you navigate to an RFC
section by name.p
and
n
, respectively.rfc-mode
from special-mode
.rfc-mode-read
display the document in a separate window,
without switching buffers. This follows the typical Emacs convention
for displaying help buffers, like help-mode
or man-mode
follow.This new release is driven by suggestions from Stefan Monnier and some issues which were open on Github. Thanks everyone!
rfc-mode-read
.rfc-mode-use-original-buffer-names
.rfc-mode-directory
can be
modified after the module has been loaded.rfc-mode
from text-mode
.expand-file-name
instead of concat
.First public version.