Emacs: use desktop

This commit is contained in:
Marcel Kapfer 2017-11-28 00:12:36 +01:00
parent a17e6b4012
commit 99777f312f

View file

@ -855,3 +855,18 @@
;; bug-hunter
;; Hunt down errors by bisecting elisp files
(use-package bug-hunter)
;; desktop
;; Save buffers, windows and frames
(use-package desktop
:disabled t
:init (desktop-save-mode)
:config
;; Save desktops a minute after Emacs was idle.
(setq desktop-auto-save-timeout 60)
;; Don't save Magit and Git related buffers
(dolist (mode '(magit-mode magit-log-mode))
(add-to-list 'desktop-modes-not-to-save mode))
(add-to-list 'desktop-files-not-to-save (rx bos "COMMIT_EDITMSG")))