galdor / rfc-mode

An Emacs major mode to read and browse RFC documents.
ISC License
105 stars 10 forks source link

Inherit from special-mode and add imenu integration #8

Closed danielmartin closed 4 years ago

danielmartin commented 4 years ago

Thank you for this package! This PR implements some features to make it closer in functionality to other packages like man-mode:

First, inherit from special-mode instead of text-mode. This already puts the buffer in read-only mode but, more interestingly, adds a few interesting keybindings for "view-like" packages like rpc-mode (scroll with SPC, S-SPC, etc.).

This PR also adds support for imenu. That lets you navigate more quickly across the different sections of an RFC document. It adds a menubar option for graphical user interfaces as well, see the following screenshot:

Screenshot 2020-07-12 at 5 06 32 PM

I have a few more features I'd like to implement, but first I want to test the waters with this PR.

galdor commented 4 years ago

I do not use the graphical mode, but I'm sure other users will like it :) And I didn't know about special-mode, thank you for telling me about it !