From: Andreas Gerler Date: Sun, 5 Apr 2015 11:15:35 +0000 (+0200) Subject: moving savehist from custom.el to bba.org. adding kill-ring search-ring and regexp... X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=8131cb0ad537f4e3e8a6c6728ad9d58bfed09544;p=emacsconfig.git moving savehist from custom.el to bba.org. adding kill-ring search-ring and regexp-search-ring to history. Signed-off-by: Andreas Gerler --- diff --git a/bba.org b/bba.org index 7eb729d3..a006fbd3 100644 --- a/bba.org +++ b/bba.org @@ -1543,7 +1543,15 @@ Some nice functions )) #+END_SRC +*** save history + [2015-04-05 Sun 12:57] +#+BEGIN_SRC emacs-lisp + (savehist-mode 1) + (setq savehist-additional-variables '(kill-ring search-ring regexp-search-ring)) + (setq savehist-file "~/.emacs.d/history") + +#+END_SRC *** done Display greetings: diff --git a/custom.el b/custom.el index df5f1851..0f66994c 100644 --- a/custom.el +++ b/custom.el @@ -12,7 +12,6 @@ '(package-user-dir "~/.emacs.d/elpa") '(paradox-github-token t) '(recentf-max-saved-items 42) - '(savehist-mode t nil (savehist)) '(template-default-directories (quote ("~/.emacs.d/templates/"))) '(toolbar-visible-p nil) '(vc-handled-backends (quote (RCS CVS SVN SCCS Bzr Hg Mtn Arch))))