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:
Henrik Lissner 2022-09-17 20:07:51 +02:00
parent 3a4233582b
commit 4a3654d666
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 9 additions and 7 deletions

View file

@ -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)))