Emacs: use desktop
This commit is contained in:
parent
a17e6b4012
commit
99777f312f
1 changed files with 15 additions and 0 deletions
|
@ -855,3 +855,18 @@
|
||||||
;; bug-hunter
|
;; bug-hunter
|
||||||
;; Hunt down errors by bisecting elisp files
|
;; Hunt down errors by bisecting elisp files
|
||||||
(use-package bug-hunter)
|
(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")))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue