summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs-config.org29
1 files changed, 29 insertions, 0 deletions
diff --git a/emacs-config.org b/emacs-config.org
index afb4c2a..5060cc5 100644
--- a/emacs-config.org
+++ b/emacs-config.org
@@ -91,6 +91,35 @@ Enable which-key that displays a pop-up window of posisble keybindings sequences
(which-key-mode)
#+end_src
+** History
+*** Minibuffer History
+Enable saving minibuffer history.
+#+begin_src elisp
+ (savehist-mode)
+#+end_src
+
+Automatically save history on exit.
+#+begin_example elisp
+ (add-hook 'kill-emacs-hook #'savehist-save)
+#+end_example
+
+Ensure savehist file is loaded.
+#+begin_src elisp
+ (unless savehist-loaded
+ (load-file savehist-file))
+#+end_src
+
+Add addtional variable lists to save.
+#+begin_src elisp
+ (dolist (var '(command-history
+ register-alist
+ mark-ring
+ kill-ring
+ search-ring
+ regexp-search-ring))
+ (cl-pushnew var savehist-additional-variables))
+#+end_src
+
* Global Keybindings
Unlock previously unusable keybinding.
#+begin_src elisp