about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-01-17T12·10+0100
committersterni <sternenseemann@systemli.org>2022-01-17T13·11+0000
commit1164f138a69fbc2796646f7f12f5662781715978 (patch)
treed00ee0cfdb38dfb2cbe6f7b7af2bce9689911977
parent7c391344f7d5df4e9a6a2c14465b2bb5b73d51b0 (diff)
feat(users/sterni/emacs): save command and search history r/3614
Change-Id: Ied633801d4dd2b41f46ec702a345732f553142d9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4959
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
-rw-r--r--users/sterni/emacs/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el
index fc69f34a3f61..0db4abecf066 100644
--- a/users/sterni/emacs/init.el
+++ b/users/sterni/emacs/init.el
@@ -54,6 +54,10 @@
 (setq backup-by-copying t)
 (setq create-lockfiles nil)
 
+;; save history
+(savehist-mode)
+(setq savehist-additional-variables '(search-ring regexp-search-ring magit-cl-history))
+
 ;; buffers
 ;; unique component should come first for better completion
 (setq uniquify-buffer-name-style 'forward)