Update recentf config

This commit is contained in:
James Cherti
2025-07-26 12:44:05 -04:00
parent 591edf7314
commit 379131cdc2
2 changed files with 2 additions and 2 deletions

View File

@@ -301,7 +301,7 @@ The recentf, savehist, saveplace, and auto-revert built-in packages are already
(add-hook 'after-init-hook #'(lambda() (add-hook 'after-init-hook #'(lambda()
(let ((inhibit-message t)) (let ((inhibit-message t))
(recentf-mode 1)))) (recentf-mode 1))))
(setq recentf-auto-cleanup (if (daemonp) 300 'never))
(with-eval-after-load "recentf" (with-eval-after-load "recentf"
(add-hook 'kill-emacs-hook #'recentf-cleanup)) (add-hook 'kill-emacs-hook #'recentf-cleanup))

View File

@@ -217,7 +217,7 @@
;; `recentf' is an that maintains a list of recently accessed files. ;; `recentf' is an that maintains a list of recently accessed files.
(setq recentf-max-saved-items 300) ; default is 20 (setq recentf-max-saved-items 300) ; default is 20
(setq recentf-max-menu-items 15) (setq recentf-max-menu-items 15)
(setq recentf-auto-cleanup (if (daemonp) 300 'never)) (setq recentf-auto-cleanup 'mode)
;; Update recentf-exclude ;; Update recentf-exclude
(setq recentf-exclude (list "^/\\(?:ssh\\|su\\|sudo\\)?:")) (setq recentf-exclude (list "^/\\(?:ssh\\|su\\|sudo\\)?:"))