From: Andreas Gerler Date: Wed, 29 Jul 2015 13:59:56 +0000 (+0200) Subject: savehist-mode: fix for kmacro-ring X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=b7302e513abcfac1f72734147c5d9afa09ea996b;p=emacsconfig.git savehist-mode: fix for kmacro-ring --- 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