]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
savehist-mode: fix for kmacro-ring
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 29 Jul 2015 13:59:56 +0000 (15:59 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 29 Jul 2015 13:59:56 +0000 (15:59 +0200)
bba.org

diff --git a/bba.org b/bba.org
index 0694cf5445914d0571d8414007daa95825294a2c..6c8a382a3ae3d6e826aef1cbb0f5e15957ee5063 100644 (file)
--- 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