From eb170a7a382603728eb561029e06a7bc3e0efc88 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 23 May 2022 02:32:53 +0200 Subject: [PATCH] tweak: add /run to recentf-exclude --- core/core-editor.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core-editor.el b/core/core-editor.el index 15e93e376..62a8deeef 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -306,6 +306,9 @@ 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") + ;; Resolve symlinks, strip out the /sudo:X@ prefix in local tramp paths, and ;; abbreviate $HOME -> ~ in filepaths (more portable, more readable, & saves ;; space)