From 15747d07e809f9390fb3a20cac4ec9d442eec086 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 14 Mar 2014 15:43:29 +0900 Subject: [PATCH] emacs.el: do not add files under user-emacs-directory to recentf lsit --- emacs.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 16cb409..03baa65 100644 --- a/emacs.el +++ b/emacs.el @@ -1500,7 +1500,10 @@ found, otherwise returns nil." recentf-show-file-shortcuts-flag nil) (when (require 'recentf nil t) - (add-to-list 'recentf-exclude (regexp-quote recentf-save-file)) + (add-to-list 'recentf-exclude + (regexp-quote recentf-save-file)) + (add-to-list 'recentf-exclude + (regexp-quote (expand-file-name user-emacs-directory))) (define-key ctl-x-map (kbd "C-r") 'recentf-open-files) (add-hook 'find-file-hook 'recentf-save-list