Is there an Emacs feature for highlighting some lines in a file to make it easier to jump around? My immediate use-case is a gigantic auto-generated C++ file with horrible indentation, which is rather difficult to navigate and it's easy to get lost. At the moment, I'm adding comments of the form // LOC-1
to find where I've just been, but that feels a bit icky.
I know that some other text editors have this tied in with their bookmark mechanism (sublime text?) and you can add a blue blob to the left gutter. Maybe there's a way to show Emacs bookmarks in the gutter? Or maybe there's a different feature that shows something like this or highlighted lines?
I'm not concerned with this persisting across closing and opening the file, or with multiple buffers viewing it: either persistent or not is fine with me.
Is there an easy way for me to leave myself some "breadcrumbs"?
evil-mode
which emulates vim. This allows you to set "invisible" marks. For examplemm
would create a mark named "m" andma
would create a mark called "a". You could then navigate to line "m" with'm
and navigate to line "a" with'a
. You could navigate to the marked position on "m" with`m
and the marked position on "a" with`a
. Of course,evil
has a learning curve.