Enable savehist-mode
This commit is contained in:
parent
1fed926260
commit
2a02ca3100
|
@ -39,8 +39,6 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia
|
||||||
|
|
||||||
(global-auto-revert-mode +1)
|
(global-auto-revert-mode +1)
|
||||||
(delete-selection-mode +1)
|
(delete-selection-mode +1)
|
||||||
(recentf-mode +1)
|
|
||||||
|
|
||||||
|
|
||||||
(keymap-global-set "M-#" #'dictionary-lookup-definition)
|
(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"))
|
(setq backup-directory-alist '(("." . "~/.local/state/emacs/backups"))
|
||||||
tramp-backup-directory-alist backup-directory-alist
|
tramp-backup-directory-alist backup-directory-alist
|
||||||
tramp-auto-save-directory (cdr (assoc "." tramp-backup-directory-alist)))
|
tramp-auto-save-directory (cdr (assoc "." tramp-backup-directory-alist)))
|
||||||
|
|
||||||
|
(savehist-mode +1)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Recent files
|
** Recent files
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package recentf
|
(use-package recentf
|
||||||
:config
|
:config
|
||||||
(add-to-list 'recentf-exclude (org-agenda-files))
|
(run-at-time nil (* 5 60) 'recentf-save-list)
|
||||||
|
(recentf-mode +1)
|
||||||
:custom
|
:custom
|
||||||
(recentf-max-saved-items 2048))
|
(recentf-max-saved-items 2048))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
Loading…
Reference in a new issue