mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)))
|
||||
|
Reference in New Issue
Block a user