If you remember a post I wrote a while back, I had made a mode save-visited-files that was a lightweight replacement for desktop.el. It saves the files you have opened, reloading these whenever you start emacs. Ryan Thompson spent some time improving save-visited-files, so I thought I’d release his improvements. save-visited-files.el can be downloaded from here.
Save-visited-files now uses auto-save-hook instead of a periodic timer. This is probably the better decision, but it means you don’t want it to trigger too often. In order to reduce the number of auto-saves, you can use the following, which will auto-save every 3000 input events:
(setq auto-save-interval 3000)
The functions and variables in save-visited-files are also named more consistently, with each one being prefixed with save-visited-files. The mode can now also be customized with M-x customize-group save-visited files. As a final improvement, the handling of the temporary buffer is handled much more nicely, so that the user is never presented with it.
To use the new save-visited-files, just put the following in your .emacs file:
(require 'save-visited-files) (turn-on-save-visited-files-mode)