Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

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

share|improve this question

1 Answer 1

up vote 8 down vote accepted

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).

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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