2018-03-31 04:31:52 +00:00
|
|
|
(setq spacemacs-dump-mode 'dumping)
|
2019-07-27 03:00:47 +00:00
|
|
|
;; load init.el
|
2019-01-25 13:20:38 +00:00
|
|
|
(setq spacemacs-start-directory (file-name-directory load-file-name))
|
|
|
|
(load (concat spacemacs-start-directory "init.el"))
|
2019-07-27 03:00:47 +00:00
|
|
|
;; prepare the dump
|
|
|
|
(spacemacs/dump-save-load-path)
|
2019-07-27 02:44:11 +00:00
|
|
|
;; disable undo-tree to prevent from segfaulting when loading the dump
|
|
|
|
(when (fboundp 'global-undo-tree-mode)
|
|
|
|
(global-undo-tree-mode -1))
|
2019-07-27 02:51:58 +00:00
|
|
|
;; 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))
|
2019-07-27 02:44:11 +00:00
|
|
|
(configuration-layer/message "Dumping Emacs...")
|
|
|
|
(setq spacemacs-dump-mode 'dumped)
|
|
|
|
(garbage-collect)
|