Refactor require! macro

This commit is contained in:
Henrik Lissner 2018-02-17 19:09:15 -05:00
parent 40e5357566
commit 7ac29bbd27
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -407,10 +407,8 @@ The module is only loaded once. If RELOAD-P is non-nil, load it again."
(if (file-directory-p module-path)
`(condition-case-unless-debug ex
(let ((doom--current-module (cons module submodule)))
(load ,(doom-module-path module submodule "init")
:noerror (not doom-debug-mode))
(load ,(doom-module-path module submodule "config")
:noerror (not doom-debug-mode)))
(load! init ,module-path :noerror)
(load! config ,module-path :noerror))
('error
(lwarn 'doom-modules :error
"%s in '%s %s' -> %s"