summaryrefslogtreecommitdiff
path: root/init/savehist/init-savehist.el
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2022-10-07 03:10:21 -0400
committerJohn Turner <jturner.usa@gmail.com>2022-10-07 03:10:21 -0400
commit6fac8a28da9bf30da71941340505c2316d0db5a3 (patch)
treef7d840005abe0195e093fa0db6f1e44ecba0ba8d /init/savehist/init-savehist.el
parentceaa741cfb13938aa359f33f926ccdcb2689f303 (diff)
downloademacs.d-6fac8a28da9bf30da71941340505c2316d0db5a3.tar.gz
changed the config-* prefix to init-* for all of the init files
Diffstat (limited to 'init/savehist/init-savehist.el')
-rw-r--r--init/savehist/init-savehist.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/init/savehist/init-savehist.el b/init/savehist/init-savehist.el
new file mode 100644
index 0000000..7e6e311
--- /dev/null
+++ b/init/savehist/init-savehist.el
@@ -0,0 +1,11 @@
+(require 'savehist)
+
+(setq savehist-file (expand-file-name "savehist" user-emacs-directory)
+ savehist-save-minibuffer-history t)
+
+(add-to-list 'savehist-additional-variables 'command-history)
+
+(unless (file-exists-p savehist-file)
+ (make-empty-file savehist-file))
+
+(provide 'init-savehist)