# HG changeset patch # User Oleksandr Gavenko # Date 1609609467 -7200 # Node ID bfa894057550c6f8c3ee3992b68a7243f6030aee # Parent 2952c3c11261bad6d08cba528d46354e9d26abd4 Added note about recentf-auto-cleanup. diff -r 2952c3c11261 -r bfa894057550 .emacs-my --- a/.emacs-my Sat Jan 02 19:15:13 2021 +0200 +++ b/.emacs-my Sat Jan 02 19:44:27 2021 +0200 @@ -46,7 +46,6 @@ ;; (recentf-load-list) (setq recentf-save-file (concat user-emacs-directory ".recentf")) -(setq recentf-auto-cleanup 600) ;; Prevent TRAMP to login on remote host when loading. Its take time and ask passwords! (setq recentf-keep '(file-remote-p file-readable-p)) (setq recentf-exclude ; Use ``M-x recentf-cleanup`` to update recentf-list. @@ -59,7 +58,11 @@ (setq recentf-max-menu-items 40) (setq recentf-show-file-shortcuts-flag nil) -(recentf-mode t) +;; Need to be defined before loading "recentf" because default value is +;; "mode", meaning cleanup when turning the mode on. +(setq recentf-auto-cleanup 600) + +(recentf-mode 1) (global-set-key (kbd "\e\eq") 'recentf-open-files) (global-set-key [?\s-q] 'recentf-open-files)