Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; savehist setup from ryan b.
- (require 'savehist)
- (savehist-mode 1)
- (custom-set-variables
- '(savehist-length nil)
- '(savehist-history-variables
- (cons 'gud-gdb-history savehist-history-variables)))
- (custom-set-variables
- '(history-length t)
- '(history-delete-duplicates t)
- )
- ; save history and desktop periodically in case emacs crashes.
- (run-with-timer 300 300
- (lambda () (desktop-save-in-desktop-dir)
- (savehist-save)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement