summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-04-04 22:38:42 -0400
committerKyle Meyer <kyle@kyleam.com>2017-04-04 22:38:42 -0400
commit3f55f675b69ab171f9247256c825918a73b1f902 (patch)
tree10c492c7e87248d72b7a0a7a7b0924f6d856fc83
parentb950e9ec2f5ae4a6b974e2b8952d054ae4c67029 (diff)
downloademacs.d-3f55f675b69ab171f9247256c825918a73b1f902.tar.gz
Enable savehist-mode
-rw-r--r--.gitignore2
-rw-r--r--init.el7
2 files changed, 9 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index bac1d0e..05e8b5d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,8 @@
/auto-save-list
cache
/bookmarks
+/history
+/history-mail
/lisp/km-untracked.el
/.mc-lists.el
/projectile-bookmarks.eld
diff --git a/init.el b/init.el
index 277ffd7..3c04275 100644
--- a/init.el
+++ b/init.el
@@ -2269,6 +2269,10 @@
(setq bookmark-save-flag nil)
+(use-package savehist
+ :config
+ (setq savehist-autosave-interval nil))
+
;; This is intentionally not loaded.
(setq custom-file "~/.emacs.d/.custom.el")
@@ -2292,6 +2296,7 @@
(global-set-key (kbd "C-x m .") #'km/notmuch-show-at-point)
(after 'km-python
(add-hook 'kill-emacs-hook #'km/pydoc-save-names-file))
+ (savehist-mode 1)
(setq save-abbrevs 'silently
bookmark-save-flag 1))
((string= server "mail")
@@ -2302,6 +2307,8 @@
(after 'notmuch-lib
(define-key notmuch-common-keymap "G" #'km/notmuch-sync-mail)
(define-key notmuch-common-keymap "g" #'km/notmuch-sync-mail-fast))
+ (setq savehist-file (concat savehist-file "-mail"))
+ (savehist-mode 1)
(setq recentf-save-file "~/.emacs.d/cache/recentf-mail")
(setq save-abbrevs nil)))))