Refactor doom-initialize functions

Removes doom-module-table; which was inflexible (though more stable). It
prevented you from putting your doom! block in anywhere but
~/.doom.d/init.el.

It is replaced (somewhat) by (doom-modules).
This commit is contained in:
Henrik Lissner 2018-06-09 20:13:20 +02:00
parent 7f31704815
commit 01d1a814f9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 61 additions and 79 deletions

View file

@ -120,7 +120,6 @@ else (except for `window-setup-hook').")
tramp-persistency-file-name (concat doom-cache-dir "tramp-persistency.el")
url-cache-directory (concat doom-cache-dir "url/")
url-configuration-directory (concat doom-etc-dir "url/"))
(load custom-file t t t)
;;
@ -201,11 +200,12 @@ this, you'll get stuttering and random freezes) and resets
(require 'core-lib)
(require 'core-packages)
(when noninteractive
(require 'core-dispatcher))
(load custom-file t t t)
(doom-initialize noninteractive)
(if noninteractive
(require 'core-dispatcher)
(doom-initialize-modules))
(doom-initialize-modules)
(provide 'core)
;;; core.el ends here