I'd like to be able to set multiple marks in Emacs like Vim does. In Vim you might press m B and that would set a mark at that line in the file. Later pressing ' b will then move your cursor back to that line. You can make multiple marks with m{a-zA-Z} Is there a way to have multiple marks like this in Emacs?
To set the mark, type C- SPC ( set-mark-command ). This makes the mark active; as you move point, you will see the region highlighting grow and shrink. The mouse commands for specifying the mark also make it active.
From Emacs documentation :
C-x r SPC r
C-x r j r
But if you want your positions to persist automatically from one Emacs session to the next, you should use Bookmarks :
C-x r m RET
C-x r m bookmark RET
C-x r b bookmark RET
C-x r l
M-x bookmark-save
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With