From 5cb60ccc3de53a75add86a1fff15ea8e27cf8a3e Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Sat, 11 Jan 2020 20:27:44 +0900 Subject: [PATCH] Exclude package-user-dir recently --- emacs.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs.el b/emacs.el index 37c3f79..5138e4b 100644 --- a/emacs.el +++ b/emacs.el @@ -951,6 +951,12 @@ found, otherwise returns nil." (when (safe-require-or-eval 'recently) (define-key ctl-x-map (kbd "C-r") 'recently-show) (set-variable 'recently-max 1000) + (defvar recently-excludes) + (add-to-list 'recently-excludes + (rx-to-string (list 'and + 'string-start + (expand-file-name package-user-dir)) + t)) (recently-mode 1)) (when (safe-require-or-eval 'editorconfig)