Emacs: Fix desktop-mode loading order

master
Pierre Neidhardt 2017-05-22 16:26:52 +02:00
parent f374e1f910
commit 8af1ec1a0e
1 changed files with 3 additions and 3 deletions

View File

@ -235,17 +235,17 @@
;; `server-running-p' is only useful once the daemon is started and cannot be
;; used for initialization. We use `daemonp' instead.
(when (daemonp)
(desktop-save-mode 1)
(setq history-length 250)
(setq desktop-dirname (concat emacs-cache-folder "desktop"))
(unless (file-directory-p desktop-dirname)
(make-directory desktop-dirname t))
(setq desktop-path `(,desktop-dirname))
(setq desktop-path (list desktop-dirname))
;; TODO: `compile-history' should be buffer local but that does not work.
;; http://user42.tuxfamily.org/compile-history-local/index.html
;; http://stackoverflow.com/questions/22995203/one-compile-command-per-buffer-not-directory
; (add-to-list 'desktop-locals-to-save 'compile-history)
(add-to-list 'desktop-locals-to-save 'compile-command))
(add-to-list 'desktop-locals-to-save 'compile-command)
(desktop-save-mode 1))
;; GMP documentation
(with-eval-after-load "info-look"