Exclude images and remote files from recentf

This commit is contained in:
Henrik Lissner 2018-03-14 18:28:48 -04:00
parent aec4fbe590
commit 1352ac4553
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -106,7 +106,8 @@ fundamental-mode) for performance sake."
recentf-max-saved-items 300
recentf-filename-handlers '(file-truename)
recentf-exclude
(list "^/tmp/" "^/ssh:" "\\.?ido\\.last$" "\\.revive$" "/TAGS$"
(list #'file-remote-p "\\.\\(gz\\|gif\\|svg\\|png\\|jpe?g\\)$"
"^/tmp/" "^/ssh:" "\\.?ido\\.last$" "\\.revive$" "/TAGS$"
"^/var/folders/.+$"
;; ignore private DOOM temp files (but not all of them)
(concat "^" (file-truename doom-local-dir)))))