summaryrefslogtreecommitdiff
path: root/init.el
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 /init.el
parentb950e9ec2f5ae4a6b974e2b8952d054ae4c67029 (diff)
downloademacs.d-3f55f675b69ab171f9247256c825918a73b1f902.tar.gz
Enable savehist-mode
Diffstat (limited to 'init.el')
-rw-r--r--init.el7
1 files changed, 7 insertions, 0 deletions
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)))))