commit 23bc247affd165a227ae1012bb0715bd24ee3854 parent a53dc0f95f5265351ccef5146025765122741341 Author: Vincent Demeester <vincent@sbr.pm> Date: Tue, 7 Apr 2020 16:25:44 +0200 config-buffers.el: re-enable and update savehist Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-buffers.el | | | 25 | ++++++++++++++++++------- |
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/tools/emacs/config/config-buffers.el b/tools/emacs/config/config-buffers.el @@ -74,16 +74,27 @@ :bind (("C-x +" . balance-windows-area) ("<f7>" . window-toggle-side-windows))) ;; -UseDisplayBuffer + +;; UseSaveHist +(use-package savehist + :unless noninteractive + :config + (setq-default history-length 10000 + savehist-save-minibuffer-history t + savehist-autosave-interval 180 + savehist-additional-variables '(extended-command-history + search-ring + regexp-search-ring + comint-input-ring + compile-history + last-kbd-macro + shell-command-history)) + (savehist-mode 1)) +;; -UseSaveHist + (when nil (progn ;; Show the minibuffer depth (when larger than 1) - (use-package savehist ; Save minibuffer history - :init (savehist-mode t) - :config - (setq-default history-length 1000 - savehist-save-minibuffer-history t - savehist-autosave-interval 180) - (savehist-mode 1))