Browse Source

emacs.el: save recentf list when idle for 5 secs

pull/1/head
10sr 11 years ago
parent
commit
626f632743
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      emacs.el

+ 1
- 2
emacs.el View File

@@ -1330,8 +1330,7 @@ If called intearctively, find word at point."
t) ; save to file immediately after adding file to recentf list t) ; save to file immediately after adding file to recentf list
(add-hook 'kill-emacs-hook (add-hook 'kill-emacs-hook
'recentf-load-list) 'recentf-load-list)
(add-hook 'recentf-mode-hook
'recentf-save-list)
(run-with-idle-timer 5 t 'recentf-save-list)
;; (add-hook 'find-file-hook ;; (add-hook 'find-file-hook
;; (lambda () ;; (lambda ()
;; (recentf-add-file default-directory))) ;; (recentf-add-file default-directory)))


Loading…
Cancel
Save