mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
Refactor require! macro
This commit is contained in:
@ -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)
|
(if (file-directory-p module-path)
|
||||||
`(condition-case-unless-debug ex
|
`(condition-case-unless-debug ex
|
||||||
(let ((doom--current-module (cons module submodule)))
|
(let ((doom--current-module (cons module submodule)))
|
||||||
(load ,(doom-module-path module submodule "init")
|
(load! init ,module-path :noerror)
|
||||||
:noerror (not doom-debug-mode))
|
(load! config ,module-path :noerror))
|
||||||
(load ,(doom-module-path module submodule "config")
|
|
||||||
:noerror (not doom-debug-mode)))
|
|
||||||
('error
|
('error
|
||||||
(lwarn 'doom-modules :error
|
(lwarn 'doom-modules :error
|
||||||
"%s in '%s %s' -> %s"
|
"%s in '%s %s' -> %s"
|
||||||
|
Reference in New Issue
Block a user