From 1f80e2b5c5bc002172edc7a85a1c9f269bc44bb1 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sat, 25 Mar 2023 03:36:19 -0400 Subject: [PATCH] never forgot command history --- init/savehist/init-savehist.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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))