refactor(cli): read $DEBUG in early-init.el instead
This opens up $DEBUG as an alternative to --debug-init, and allows more of the startup process to react to it.
This commit is contained in:
parent
3a4233582b
commit
4a3654d666
2 changed files with 9 additions and 7 deletions
|
@ -19,10 +19,6 @@
|
|||
doom-data-dir
|
||||
doom-cache-dir))
|
||||
|
||||
;; UX: Ensure errors are sufficiently verbose from this point on.
|
||||
(when (setq init-file-debug (getenv-internal "DEBUG"))
|
||||
(setq debug-on-error t))
|
||||
|
||||
;; HACK: Load `cl' and site files manually to prevent polluting logs and
|
||||
;; stdout with deprecation and/or file load messages.
|
||||
(let ((inhibit-message (not init-file-debug)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue