Sfoglia il codice sorgente

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

pull/1/head
10sr 11 anni fa
parent
commit
626f632743
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. +1
    -2
      emacs.el

+ 1
- 2
emacs.el Vedi File

@@ -1330,8 +1330,7 @@ If called intearctively, find word at point."
t) ; save to file immediately after adding file to recentf list
(add-hook 'kill-emacs-hook
'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
;; (lambda ()
;; (recentf-add-file default-directory)))


Caricamento…
Annulla
Salva