Optimize doom-local-dir entry in recentf-exclude
file-in-directory-p is a tad more expensive. Also takes into account any modifications to recentf-filename-handlers
This commit is contained in:
parent
f1ea7de76d
commit
ddb03c6335
1 changed files with 2 additions and 2 deletions
|
@ -136,8 +136,8 @@ savehist file."
|
|||
recentf-exclude
|
||||
(list "\\.\\(?:gz\\|gif\\|svg\\|png\\|jpe?g\\)$" "^/tmp/" "^/ssh:"
|
||||
"\\.?ido\\.last$" "\\.revive$" "/TAGS$" "^/var/folders/.+$"
|
||||
;; ignore private DOOM temp files (but not all of them)
|
||||
(lambda (file) (file-in-directory-p file doom-local-dir))))
|
||||
;; ignore private DOOM temp files
|
||||
(recentf-apply-filename-handlers doom-local-dir)))
|
||||
(unless noninteractive
|
||||
(add-hook 'kill-emacs-hook #'recentf-cleanup)
|
||||
(quiet! (recentf-mode +1))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue