]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
moving savehist from custom.el to bba.org. adding kill-ring search-ring and regexp...
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sun, 5 Apr 2015 11:15:35 +0000 (13:15 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sun, 5 Apr 2015 11:15:35 +0000 (13:15 +0200)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba.org
custom.el

diff --git a/bba.org b/bba.org
index 7eb729d39ded67cece0b52bdaf1a60ba12cccee0..a006fbd320ae26acda692274a52d7c47ea5b563a 100644 (file)
--- 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:
index df5f185159664aa370413be517bede720693ccb7..0f66994c675b5006126a390b8b330771a5531904 100644 (file)
--- 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))))