From 729ba3d9777de061dcf05b389d9e86f07f9bd646 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Fri, 2 Dec 2016 10:43:24 +0100 Subject: [PATCH] savehist: fixed bug - first define your savehist-file before loading it! Signed-off-by: Andreas Gerler --- bba.org | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bba.org b/bba.org index e5ca4a93..2943fc5a 100644 --- 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 -- 2.47.3