Skip to content

Commit

Permalink
[defaults] Exclude custom-file correctly in recentf
Browse files Browse the repository at this point in the history
Entries of recentf-exclude must be expanded, e.g., `~` for the home
directory won't work.
  • Loading branch information
real-or-random authored and smile13241324 committed Jun 25, 2022
1 parent af53045 commit c9db028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/+spacemacs/spacemacs-defaults/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9db028

Please sign in to comment.