[dump] Move more dump specific init code to dump-init.el
This commit is contained in:
parent
08dc9567b8
commit
32f6f07f95
|
@ -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)
|
||||
|
|
5
init.el
5
init.el
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue