Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
dump-init.el 752 Bytes
Copy Edit Raw Blame History
;; -*- no-byte-compile: t -*-
(setq spacemacs-dump-mode 'dumping)
;; load init.el
(setq spacemacs-start-directory (file-name-directory load-file-name))
(load (concat spacemacs-start-directory "init.el"))
;; prepare the dump
(spacemacs/dump-save-load-path)
;; disable undo-tree to prevent from segfaulting when loading the dump
(when (fboundp 'global-undo-tree-mode)
(global-undo-tree-mode -1))
;; 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)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化