Fix #1444: exclude TRAMP/remote files from recentf

Causes hanging due to authentication attempts.
This commit is contained in:
Henrik Lissner 2019-05-30 13:58:32 -04:00
parent 6ea000393f
commit b68fb2aa11
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -107,8 +107,9 @@ detected.")
recentf-max-saved-items 300
recentf-filename-handlers '(file-truename abbreviate-file-name)
recentf-exclude
(list "\\.\\(?:gz\\|gif\\|svg\\|png\\|jpe?g\\)$" "^/tmp/" "^/ssh:"
"\\.?ido\\.last$" "\\.revive$" "/TAGS$" "^/var/folders/.+$"
(list #'file-remote-p "\\.\\(?: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)))
(unless noninteractive