fix(cli): remove vestigial doom-initialize-modules calls

Fix: #6784
This commit is contained in:
Henrik Lissner 2022-09-16 10:29:52 +02:00
parent ab9896c526
commit 7ea4b21953
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 4 additions and 8 deletions

View file

@ -94,11 +94,8 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
(doom-log "Reloading Doom in preparation for byte-compilation")
;; But first we must be sure that Doom and your private config have been
;; fully loaded. Which usually aren't so in an noninteractive session.
(let ((load-prefer-newer t)
(noninteractive t))
(require 'doom-start)
(quiet! (doom-initialize-packages))
(quiet! (doom-initialize-modules))))
(let ((load-prefer-newer t))
(require 'doom-start)))
(if (null targets)
(print! (item "No targets to %scompile" (if recompile-p "re" "")))

View file

@ -74,9 +74,8 @@ Change `$DOOMDIR' with the `--doomdir' option, e.g.
("config.el" . ,(doom-path doom-emacs-dir "templates/config.example.el"))
("packages.el" . ,(doom-path doom-emacs-dir "templates/packages.example.el"))))))
;; In case no init.el was present the first time `doom-initialize-modules' was
;; called in core.el (e.g. on first install)
(doom-initialize-modules 'force 'no-config)
;; In case no init.el was present the first time it was loaded.
(doom-load (doom-path doom-user-dir doom-module-init-file) t)
;; Ask if user would like an envvar file generated
(if (eq envfile? :no)