From b7302e513abcfac1f72734147c5d9afa09ea996b Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Wed, 29 Jul 2015 15:59:56 +0200 Subject: [PATCH] savehist-mode: fix for kmacro-ring --- bba.org | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bba.org b/bba.org index 0694cf54..6c8a382a 100644 --- a/bba.org +++ b/bba.org @@ -1851,6 +1851,7 @@ all in your history. #+BEGIN_SRC emacs-lisp (savehist-mode 1) (setq savehist-additional-variables '(kill-ring search-ring regexp-search-ring last-kbd-macro kmacro-ring)) + (setq kmacro-ring-max 42) (setq history-delete-duplicates t) (if (equal "work" (getenv "SYSENV")) (if (file-exists-p "~/workorg") @@ -1859,6 +1860,10 @@ all in your history. (if (file-exists-p "~/org") (setq savehist-file "~/org/emacshistory") ) + (if (file-exists-p savehist-file) + (load-file savehist-file) + ) + ) #+END_SRC -- 2.47.3