On my system, if I open a file with emacs, scroll down the file and close it, the next time I open the file, emacs will automagically scroll down to the same position. How does this work?

Is emacs keeping a database somewhere with the last N files I opened and the last cursor position in them? If so, where is this database? How much space would it occupy? Can I control this behavior?

Linux Mint Debian Edition
Kernel: 3.2.0-4-amd64
GNU Emacs 23.4.1

1 Answer 1


The database is normally saved in ~/.emacs.d/saveplace.

This feature is customized in group "Save place" (M-x customize group RET save-place RET).

  • Awesome! I didn't know about that. Thanks! Dec 12, 2012 at 15:05
  • Nice! On my system it is actually saved in ~/.emacs-places but the principle is the same, thanks.
    – terdon
    Dec 12, 2012 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.