From 2a02ca3100b14125a7e6e479b7a2b4276578a25d Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 15 Dec 2023 14:02:08 +0000 Subject: [PATCH] Enable savehist-mode --- README.org | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index 191ffa2..c9aa24e 100644 --- a/README.org +++ b/README.org @@ -39,8 +39,6 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia (global-auto-revert-mode +1) (delete-selection-mode +1) - (recentf-mode +1) - (keymap-global-set "M-#" #'dictionary-lookup-definition) @@ -58,13 +56,16 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia (setq backup-directory-alist '(("." . "~/.local/state/emacs/backups")) tramp-backup-directory-alist backup-directory-alist tramp-auto-save-directory (cdr (assoc "." tramp-backup-directory-alist))) + + (savehist-mode +1) #+end_src ** Recent files #+begin_src emacs-lisp (use-package recentf :config - (add-to-list 'recentf-exclude (org-agenda-files)) + (run-at-time nil (* 5 60) 'recentf-save-list) + (recentf-mode +1) :custom (recentf-max-saved-items 2048)) #+end_src