From 6e906cf43432a3ccbb7b214bb81c6f54d5669f05 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 14 Oct 2012 14:55:35 +0900 Subject: [PATCH] do not save recentf list when kill emacs --- emacs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 77b571f..a3affdd 100644 --- a/emacs.el +++ b/emacs.el @@ -1168,10 +1168,11 @@ delete; o: select other; j, l: enlarge; h, k: shrink; q: quit." (add-hook 'find-file-hook 'recentf-save-list t) ; save to file immediately after adding file to recentf list + (remove-hook 'kill-emacs-hook + 'recentf-save-list) ;; (add-hook 'find-file-hook ;; (lambda () ;; (recentf-add-file default-directory))) - ;; (add-to-list 'recentf-filename-handlers 'abbreviate-file-name) (and (dllib-if-unfound "https://raw.github.com/10sr/emacs-lisp/master/recentf-show.el" t)