Fix exclusion of doom-local-dir from recentf list
This commit is contained in:
parent
ae365272ad
commit
3589ce4c5b
1 changed files with 2 additions and 2 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue