From ddb03c6335b81590ed6a2ede4f6e689eb67c640b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 13 May 2019 19:26:52 -0400 Subject: [PATCH] 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 --- core/core-editor.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-editor.el b/core/core-editor.el index 215e9c3d0..abfe78beb 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -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))))