Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged


You can put the current position in a variable of your choosing and save that variable persistently. Put a function that sets the variable value on kill-buffer-hook, since you say (in a comment) that you want to do this just before killing the buffer. Or on kill-emacs-hook. You can add your variable for this to savehist-additional-variables, and use ...

Only top voted, non community-wiki answers of a minimum length are eligible