mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Refactor doom init process
- Refactors doom-initialize - Moves doom-initialize-modules call to init.el, to more easily isolate it during unit testing.
This commit is contained in:
13
init.el
13
init.el
@ -45,5 +45,16 @@
|
||||
;; to skip the mtime checks on every *.elc file we load.
|
||||
(setq load-prefer-newer noninteractive)
|
||||
|
||||
;; Let 'er rip!
|
||||
;; Load the heart of Doom Emacs
|
||||
(require 'core (concat user-emacs-directory "core/core"))
|
||||
|
||||
;; And let 'er rip!
|
||||
(unless noninteractive
|
||||
(add-hook 'window-setup-hook #'doom-display-benchmark-h)
|
||||
(when (cdr command-line-args)
|
||||
(add-to-list 'command-switch-alist
|
||||
(cons "--restore" #'doom-restore-session-handler))))
|
||||
|
||||
(doom-initialize)
|
||||
(doom-initialize-core)
|
||||
(doom-initialize-modules)
|
||||
|
Reference in New Issue
Block a user