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

@ -9,7 +9,8 @@ If neither is available, run all tests in all enabled modules."
;; Core libraries aren't fully loaded in a noninteractive session, so we
;; reload it with `noninteractive' set to nil to force them to.
(quiet! (doom-reload-autoloads))
(doom-initialize t t)
(doom-initialize 'force t)
(doom-initialize-modules 'force)
(let ((target-paths
;; Convert targets into a list of string paths, pointing to the root
;; directory of modules