tweak: add $XDG_RUNTIME_DIR to recentf-exclude

Ref: eb170a7a38
This commit is contained in:
Henrik Lissner 2022-06-04 14:58:07 +02:00
parent 60df67de34
commit f96c666460
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -306,8 +306,10 @@ tell you about it. Very annoying. This prevents that."
(abbreviate-file-name (file-truename (tramp-file-name-localname tfile)))
file))
;; Anything in the runtime folders (i.e. $XDG_RUNTIME_DIR)
(add-to-list 'recentf-exclude "^/run")
;; Anything in runtime folders
(add-to-list 'recentf-exclude
(concat "^" (regexp-quote (or (getenv "XDG_RUNTIME_DIR")
"/run"))))
;; Resolve symlinks, strip out the /sudo:X@ prefix in local tramp paths, and
;; abbreviate $HOME -> ~ in filepaths (more portable, more readable, & saves