Update README.md
This commit is contained in:
@@ -189,6 +189,7 @@ The recentf, savehist, saveplace, and auto-revert built-in packages are already
|
|||||||
;; accessed files, making it easier to reopen files you have worked on
|
;; accessed files, making it easier to reopen files you have worked on
|
||||||
;; recently.
|
;; recently.
|
||||||
(add-hook 'after-init-hook #'recentf-mode)
|
(add-hook 'after-init-hook #'recentf-mode)
|
||||||
|
(add-hook 'kill-emacs-hook #'recentf-cleanup)
|
||||||
|
|
||||||
;; savehist is an Emacs feature that preserves the minibuffer history between
|
;; savehist is an Emacs feature that preserves the minibuffer history between
|
||||||
;; sessions. It saves the history of inputs in the minibuffer, such as commands,
|
;; sessions. It saves the history of inputs in the minibuffer, such as commands,
|
||||||
|
|||||||
2
init.el
2
init.el
@@ -208,7 +208,7 @@
|
|||||||
;; recently.
|
;; recently.
|
||||||
(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 'mode))
|
(setq recentf-auto-cleanup (if (daemonp) 300 'never))
|
||||||
|
|
||||||
;; Update recentf-exclude
|
;; Update recentf-exclude
|
||||||
(setq recentf-exclude (list "^/\\(?:ssh\\|su\\|sudo\\)?:"))
|
(setq recentf-exclude (list "^/\\(?:ssh\\|su\\|sudo\\)?:"))
|
||||||
|
|||||||
Reference in New Issue
Block a user