From 014acf26133d9a7d61325b7b2f56dd321be8a8fe Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Sun, 2 Feb 2025 22:25:04 -0500 Subject: [PATCH] Update recentf options --- init.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/init.el b/init.el index 172fa34..911a19e 100644 --- a/init.el +++ b/init.el @@ -212,15 +212,13 @@ ;; recently. (setq recentf-max-saved-items 300) ; default is 20 (setq recentf-max-menu-items 15) -(setq recentf-auto-cleanup 'never) - +(setq recentf-auto-cleanup (if (daemonp) 300 'never)) (defun minimal-emacs--cleanup-hook () "Run `recentf-cleanup' if `recentf' is loaded and `recentf-mode' is enabled." (when (and (featurep 'recentf) recentf-mode (fboundp 'recentf-cleanup)) (recentf-cleanup))) - (add-hook 'kill-emacs-hook #'minimal-emacs--cleanup-hook) ;;; saveplace