From 1164f138a69fbc2796646f7f12f5662781715978 Mon Sep 17 00:00:00 2001 From: sterni Date: Mon, 17 Jan 2022 13:10:07 +0100 Subject: [PATCH] feat(users/sterni/emacs): save command and search history Change-Id: Ied633801d4dd2b41f46ec702a345732f553142d9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4959 Tested-by: BuildkiteCI Reviewed-by: sterni Autosubmit: sterni --- users/sterni/emacs/init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el index fc69f34a3..0db4abecf 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)