[defaults] Exclude `custom-file` correctly in recentf

Entries of recentf-exclude must be expanded, e.g., `~` for the home
directory won't work.
This commit is contained in:
Tim Ruffing 2022-06-24 18:30:45 +02:00 committed by Maxi Wolff
parent af53045448
commit c9db028421
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@
(add-to-list 'recentf-exclude (recentf-expand-file-name package-user-dir))
(add-to-list 'recentf-exclude "COMMIT_EDITMSG\\'")
(when custom-file
(add-to-list 'recentf-exclude custom-file)))))
(add-to-list 'recentf-exclude (recentf-expand-file-name custom-file))))))
(defun spacemacs-defaults/init-savehist ()
(use-package savehist