parent
7cc946a74b
commit
357d10f5a7
2 changed files with 37 additions and 36 deletions
|
@ -238,6 +238,7 @@ in."
|
||||||
(print! (start "Checking your enabled modules..."))
|
(print! (start "Checking your enabled modules..."))
|
||||||
(advice-add #'require :around #'doom-shut-up-a)
|
(advice-add #'require :around #'doom-shut-up-a)
|
||||||
(pcase-dolist (`(,group . ,name) (doom-module-list))
|
(pcase-dolist (`(,group . ,name) (doom-module-list))
|
||||||
|
(doom-context-with 'doctor
|
||||||
(let (doom-local-errors
|
(let (doom-local-errors
|
||||||
doom-local-warnings)
|
doom-local-warnings)
|
||||||
(let (doom-doctor--errors
|
(let (doom-doctor--errors
|
||||||
|
@ -272,7 +273,7 @@ in."
|
||||||
(setq doom-local-errors doom-doctor--errors
|
(setq doom-local-errors doom-doctor--errors
|
||||||
doom-local-warnings doom-doctor--warnings)))
|
doom-local-warnings doom-doctor--warnings)))
|
||||||
(appendq! doom-doctor--errors doom-local-errors)
|
(appendq! doom-doctor--errors doom-local-errors)
|
||||||
(appendq! doom-doctor--warnings doom-local-warnings)))))
|
(appendq! doom-doctor--warnings doom-local-warnings))))))
|
||||||
(error
|
(error
|
||||||
(warn! "Attempt to load DOOM failed\n %s\n"
|
(warn! "Attempt to load DOOM failed\n %s\n"
|
||||||
(or (cdr-safe ex) (car ex)))
|
(or (cdr-safe ex) (car ex)))
|
||||||
|
|
|
@ -487,7 +487,7 @@ All valid contexts:
|
||||||
sandbox -- This session was launched from Doom's sandbox.
|
sandbox -- This session was launched from Doom's sandbox.
|
||||||
packages -- when packagedefs are being read
|
packages -- when packagedefs are being read
|
||||||
reload -- while reloading doom")
|
reload -- while reloading doom")
|
||||||
(put 'doom-context 'valid-values '(cli compile eval init modules packages reload sandbox))
|
(put 'doom-context 'valid-values '(cli compile eval init modules packages reload doctor sandbox))
|
||||||
(put 'doom-context 'risky-local-variable t)
|
(put 'doom-context 'risky-local-variable t)
|
||||||
|
|
||||||
(defun doom-context--check (context)
|
(defun doom-context--check (context)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue