mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -136,8 +136,8 @@ savehist file."
|
|||||||
recentf-exclude
|
recentf-exclude
|
||||||
(list "\\.\\(?:gz\\|gif\\|svg\\|png\\|jpe?g\\)$" "^/tmp/" "^/ssh:"
|
(list "\\.\\(?:gz\\|gif\\|svg\\|png\\|jpe?g\\)$" "^/tmp/" "^/ssh:"
|
||||||
"\\.?ido\\.last$" "\\.revive$" "/TAGS$" "^/var/folders/.+$"
|
"\\.?ido\\.last$" "\\.revive$" "/TAGS$" "^/var/folders/.+$"
|
||||||
;; ignore private DOOM temp files (but not all of them)
|
;; ignore private DOOM temp files
|
||||||
(lambda (file) (file-in-directory-p file doom-local-dir))))
|
(recentf-apply-filename-handlers doom-local-dir)))
|
||||||
(unless noninteractive
|
(unless noninteractive
|
||||||
(add-hook 'kill-emacs-hook #'recentf-cleanup)
|
(add-hook 'kill-emacs-hook #'recentf-cleanup)
|
||||||
(quiet! (recentf-mode +1))))
|
(quiet! (recentf-mode +1))))
|
||||||
|
Reference in New Issue
Block a user