dump: reactivate server start in init.el but nut while dumping

This commit is contained in:
syl20bnr 2018-05-20 04:41:43 -04:00
parent d65bcb592d
commit d5ebe73e68
1 changed files with 5 additions and 3 deletions

View File

@ -42,9 +42,11 @@
(global-font-lock-mode)
(global-undo-tree-mode t)
(winner-mode t))
;; (when dotspacemacs-enable-server
;; (require 'server)
;; (unless (server-running-p) (server-start)))
(when (and dotspacemacs-enable-server (not (spacemacs-is-dumping-p)))
(require 'server)
(unless (server-running-p)
(message "Starting a server...")
(server-start)))
(spacemacs|when-dumping-strict
(setq load-path-backup load-path)
;; disable undo-tree to prevent from segfaulting when loading the dump