Search code examples
emacsbookmarks

How do I set marks in Emacs à la Vim?


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 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?


Solution

  • You can use what Emacs calls registers. The documentation explains them better than I can.