Search code examples
emacselispemacs23dot-emacs

Emacs - set mark on edit location


I want emacs to add last edit location to the mark ring, so I can jump back to previous edit locations.

Ideally this would only mark one edit location per line. When I edit another line, the last edit location on that line would be added to the ring, and so forth.

I'm not familiar with Lisp to implement this myself. If anyone knows of a plugin or can kindly provide a solution that would be great! :)


Solution

  • Session.el provides this functionality bound to "C-x C-/" or session-jump-to-last-change.

    Session dos it per buffer. I'm unaware of anything that does it globally.