Add custom-file to recentf-exclude list

This commit is contained in:
Evan Klitzke 2021-05-25 09:35:21 -07:00 committed by Maximilian Wolff
parent 3b45182e45
commit 89844fe411
No known key found for this signature in database
GPG Key ID: 2DD07025BFDBD89A
1 changed files with 3 additions and 1 deletions

View File

@ -407,7 +407,9 @@
(add-to-list 'recentf-exclude
(recentf-expand-file-name spacemacs-cache-directory))
(add-to-list 'recentf-exclude (recentf-expand-file-name package-user-dir))
(add-to-list 'recentf-exclude "COMMIT_EDITMSG\\'"))))
(add-to-list 'recentf-exclude "COMMIT_EDITMSG\\'")
(unless (null custom-file)
(add-to-list 'recentf-exclude custom-file)))))
(defun spacemacs-defaults/init-savehist ()
(use-package savehist