Skip to content

Commit c9db028

Browse files
real-or-randomsmile13241324
authored andcommitted
[defaults] Exclude custom-file correctly in recentf
Entries of recentf-exclude must be expanded, e.g., `~` for the home directory won't work.
1 parent af53045 commit c9db028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layers/+spacemacs/spacemacs-defaults/packages.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@
425425
(add-to-list 'recentf-exclude (recentf-expand-file-name package-user-dir))
426426
(add-to-list 'recentf-exclude "COMMIT_EDITMSG\\'")
427427
(when custom-file
428-
(add-to-list 'recentf-exclude custom-file)))))
428+
(add-to-list 'recentf-exclude (recentf-expand-file-name custom-file))))))
429429

430430
(defun spacemacs-defaults/init-savehist ()
431431
(use-package savehist

0 commit comments

Comments
 (0)