diff options
author | Kyle Meyer <kyle@kyleam.com> | 2017-04-04 22:38:42 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2017-04-04 22:38:42 -0400 |
commit | 3f55f675b69ab171f9247256c825918a73b1f902 (patch) | |
tree | 10c492c7e87248d72b7a0a7a7b0924f6d856fc83 | |
parent | b950e9ec2f5ae4a6b974e2b8952d054ae4c67029 (diff) | |
download | emacs.d-3f55f675b69ab171f9247256c825918a73b1f902.tar.gz |
Enable savehist-mode
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | init.el | 7 |
2 files changed, 9 insertions, 0 deletions
@@ -1,6 +1,8 @@ /auto-save-list cache /bookmarks +/history +/history-mail /lisp/km-untracked.el /.mc-lists.el /projectile-bookmarks.eld @@ -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))))) |