Sunday, 31 July 2011

Auto Save a File in Emacs

Download http://www.litchie.net/programs/real-auto-save.html to .emacs.d, and then:

;; real auto-save - forces auto save mode
(require 'real-auto-save)
(add-hook 'text-mode-hook 'turn-on-real-auto-save)
(add-hook 'muse-mode-hook 'turn-on-real-auto-save)
(add-hook 'slime-mode-hook 'turn-on-real-auto-save)
(add-hook 'emacs-list-mode-hook 'turn-on-real-auto-save)
(setq real-auto-save-interval 5) ;; in seconds

No comments:

Post a Comment