summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2023-03-25 03:36:19 -0400
committerJohn Turner <jturner.usa@gmail.com>2023-03-26 00:20:56 -0400
commit1f80e2b5c5bc002172edc7a85a1c9f269bc44bb1 (patch)
tree03fa623bb809a399851a8886f5aa662c15f7e75d
parent228d60c5dcfe06fb30e40efe76be272ee48946a1 (diff)
downloademacs.d-1f80e2b5c5bc002172edc7a85a1c9f269bc44bb1.tar.gz
never forgot command history
-rw-r--r--init/savehist/init-savehist.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/init/savehist/init-savehist.el b/init/savehist/init-savehist.el
index 2089704..5beea5e 100644
--- a/init/savehist/init-savehist.el
+++ b/init/savehist/init-savehist.el
@@ -1,9 +1,11 @@
(require 'savehist)
+(defvar init-savehist-history-size 9999999999)
+
(setq savehist-file (expand-file-name "savehist" user-emacs-directory)
savehist-save-minibuffer-history t)
-(add-to-list 'savehist-additional-variables 'command-history)
+(add-to-list 'savehist-additional-variables `(command-history . ,init-savehist-history-size))
(unless (file-exists-p savehist-file)
(make-empty-file savehist-file))