Fix the recentf-exclude variable

recentf-exclude variable takes regexps or functions for filenames
excluded. spacemacs-cache-directory should not be quoted since it's not a
function. I also excluded elpa directory.

You should run M-x recentf-cleanup to update the recentf-exclude rules.
This commit is contained in:
Rl3x Fish ⚓ 2015-05-19 22:57:06 +02:00 committed by syl20bnr
parent 91462a6d41
commit ca9fa6cdfe

View file

@ -2539,13 +2539,13 @@ It is a string holding:
(recentf-mode)
(recentf-track-opened-file))))
:config
(progn
(setq recentf-exclude '(spacemacs-cache-directory))
(add-to-list 'recentf-exclude "COMMIT_EDITMSG\\'")
(setq recentf-save-file (concat spacemacs-cache-directory "recentf"))
(setq recentf-max-saved-items 100)
(setq recentf-auto-cleanup 'never)
(setq recentf-auto-save-timer (run-with-idle-timer 600 t 'recentf-save-list)))))
(add-to-list 'recentf-exclude (expand-file-name spacemacs-cache-directory))
(add-to-list 'recentf-exclude (expand-file-name package-user-dir))
(add-to-list 'recentf-exclude "COMMIT_EDITMSG\\'")
(setq recentf-save-file (concat spacemacs-cache-directory "recentf"))
(setq recentf-max-saved-items 100)
(setq recentf-auto-cleanup 'never)
(setq recentf-auto-save-timer (run-with-idle-timer 600 t 'recentf-save-list))))
(defun spacemacs/init-rfringe ()
(use-package rfringe