Refactor module load process

doom! no longer loads modules, it only sets
doom-modules (incrementally).

Instead, modules are loaded by doom-initialize-modules (which makes more
sense).
This commit is contained in:
Henrik Lissner 2018-08-08 21:45:07 +02:00
parent f88a97177c
commit 6eafdd7c62
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 51 additions and 62 deletions

View file

@ -295,10 +295,6 @@ If RETURN-P, return the message as a string instead of displaying it."
(or doom-init-time
(setq doom-init-time (float-time (time-subtract (current-time) before-init-time))))))
(defun doom|post-init ()
"Run `doom-post-init-hook'. That's all."
(run-hook-wrapped 'doom-post-init-hook #'doom-try-run-hook))
(defun doom|run-all-startup-hooks ()
"Run all startup Emacs hooks. Meant to be executed after starting Emacs with
-q or -Q, for example:
@ -372,8 +368,8 @@ to least)."
(require 'core-os)
(when (or force-load-core-p (not noninteractive))
(add-hook! 'emacs-startup-hook
#'(doom|post-init doom|display-benchmark))
(add-hook 'emacs-startup-hook #'doom|display-benchmark)
(require 'core-ui)
(require 'core-editor)
(require 'core-projects)