Emacs: Jump to Previous Marked Position

Emacs: Jump to Previous Marked Position

Often, you need to go to a previous position in a buffer. For example, you are editing a big source code that's few hundred lines. You want to look at some function's definition, but then you want to return to the current position.

Emacs has a buffer mark ring and global mark ring that records mark positions and lets you jump to it.

  • Press 【Ctrl+Space Ctrl+Space】 to push current position into mark ring.
  • Press 【Ctrl+u Ctrl+Space】 to go back to previous position in current buffer.
  • Press 【Ctrl+x Ctrl+Space】 (“pop-global-mark”) to go back previous position that may not be the current buffer.

Popular posts from this blog

11 Years of Writing About Emacs

does md5 creates more randomness?

Google Code shutting down, future of ErgoEmacs