]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
savehist: fixed bug
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 2 Dec 2016 09:43:24 +0000 (10:43 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 2 Dec 2016 09:43:24 +0000 (10:43 +0100)
- first define your savehist-file before loading it!

Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba.org

diff --git a/bba.org b/bba.org
index e5ca4a9321d0087134733e80ef39a7db51dcd7a8..2943fc5a10e417f9a905277ec4013e96ffa28ba9 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -3309,23 +3309,22 @@ not in the public git emacs configuration.
 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 shell-command-history))
   (setq kmacro-ring-max 42)
   (setq history-delete-duplicates t)
   (if (equal "work" (getenv "SYSENV"))
       (if (file-exists-p "~/workorg")
           (setq savehist-file "~/workorg/emacshistory")
-        )
+       )
     (if (file-exists-p "~/org")
-        (setq savehist-file "~/org/emacshistory")
+       (setq savehist-file "~/org/emacshistory")
       )
     (if (file-exists-p savehist-file)
-        (load-file savehist-file)
-        )
+       (load-file savehist-file)
+       )
 
   )
-
+  (savehist-mode 1)
 #+END_SRC
 
 * start ssh in screen session