[dump] Move more dump specific init code to dump-init.el

This commit is contained in:
syl20bnr 2019-07-26 22:51:58 -04:00
parent 08dc9567b8
commit 32f6f07f95
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,12 @@
;; disable undo-tree to prevent from segfaulting when loading the dump
(when (fboundp 'global-undo-tree-mode)
(global-undo-tree-mode -1))
;; (spacemacs/startup-hook)
;; Enable some modes that seem to not survive to the dumping process
(spacemacs|unless-dumping-and-eval-after-loaded-dump activate-modes
(global-font-lock-mode)
(when (fboundp 'global-undo-tree-mode)
(global-undo-tree-mode t))
(winner-mode 1))
(configuration-layer/message "Dumping Emacs...")
(setq spacemacs-dump-mode 'dumped)
(garbage-collect)

View File

@ -42,11 +42,6 @@
(configuration-layer/load)
(spacemacs-buffer/display-startup-note)
(spacemacs/setup-startup-hook)
(spacemacs|unless-dumping
;; these modes need to be re-enabled explicitly
(global-font-lock-mode)
(global-undo-tree-mode t)
(winner-mode t))
(spacemacs/dump-eval-delayed-functions)
(when (and dotspacemacs-enable-server (not (spacemacs-is-dumping-p)))
(require 'server)