Advertisement
goatbar

savehist for emacs

Sep 17th, 2012
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.46 KB | None | 0 0
  1. ; savehist setup from ryan b.
  2.  
  3. (require 'savehist)
  4. (savehist-mode 1)
  5. (custom-set-variables
  6. '(savehist-length nil)
  7. '(savehist-history-variables
  8. (cons 'gud-gdb-history savehist-history-variables)))
  9.  
  10. (custom-set-variables
  11. '(history-length t)
  12. '(history-delete-duplicates t)
  13. )
  14.  
  15. ; save history and desktop periodically in case emacs crashes.
  16. (run-with-timer 300 300
  17.                 (lambda () (desktop-save-in-desktop-dir)
  18.                   (savehist-save)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement