Refactor require! macro
This commit is contained in:
parent
40e5357566
commit
7ac29bbd27
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user