Fix exclusion of doom-local-dir from recentf list

This commit is contained in:
Henrik Lissner 2019-06-18 13:38:01 +02:00
parent ae365272ad
commit 3589ce4c5b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -111,18 +111,18 @@ detected.")
recentf-auto-cleanup 'never
recentf-max-menu-items 0
recentf-max-saved-items 200
recentf-filename-handlers '(doom--recent-file-truename abbreviate-file-name)
recentf-exclude
(list "\\.\\(?:gz\\|gif\\|svg\\|png\\|jpe?g\\)$" "^/tmp/" "^/ssh:"
"\\.?ido\\.last$" "\\.revive$" "/TAGS$" "^/var/folders/.+$"
;; ignore private DOOM temp files
(recentf-apply-filename-handlers doom-local-dir)))
(regexp-quote (recentf-apply-filename-handlers doom-local-dir))))
(defun doom--recent-file-truename (file)
(if (or (file-remote-p file nil t)
(not (file-remote-p file)))
(file-truename file)
file))
(setq recentf-filename-handlers '(doom--recent-file-truename abbreviate-file-name))
(defun doom|recentf-touch-buffer ()
"Bump file in recent file list when it is switched or written to."