Browse Source

emacs.el: do not add files under user-emacs-directory to recentf lsit

pull/1/head
10sr 10 years ago
parent
commit
15747d07e8
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      emacs.el

+ 4
- 1
emacs.el View File

@@ -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


Loading…
Cancel
Save