summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-08-31 11:53:56 -0700
committerFranck Cuny <franck@fcuny.net>2024-08-31 11:53:56 -0700
commitd8682042d5ee79bb7bb46d5e12bb4116aba55030 (patch)
treef622eee6c3d80ba0d16611750e8ddab13368aef3
parentmore configuration changes for org-mode (diff)
downloademacs.d-d8682042d5ee79bb7bb46d5e12bb4116aba55030.tar.gz
update configuration for `savehist`
-rw-r--r--config/init-base.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/init-base.el b/config/init-base.el
index d2c83cd..8c843f2 100644
--- a/config/init-base.el
+++ b/config/init-base.el
@@ -44,7 +44,13 @@
   (recentf-mode t))
 
 (use-package savehist
+  :ensure nil
+  :hook (after-init . savehist-mode)
   :config
+  (setq savehist-file (locate-user-emacs-file "savehist"))
+  (setq history-length 100)
+  (setq history-delete-duplicates t)
+  (setq savehist-save-minibuffer-history t)
   (savehist-mode t))
 
 (use-package saveplace