From 25be590b7913565e7d18463dea68065640f67c59 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 3 Feb 2017 08:00:38 -0500 Subject: [PATCH] Set doom-debug-mode on DEBUG envar or debug-on-error --- core/core.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/core.el b/core/core.el index 231a74e62..0465b230e 100644 --- a/core/core.el +++ b/core/core.el @@ -21,9 +21,9 @@ (defvar doom-version "2.0.0" "Current version of DOOM emacs") -(defvar doom-debug-mode nil - "If non-nil, all loading functions will be verbose and `use-package-debug' -will be set.") +(defvar doom-debug-mode (or (getenv "DEBUG") debug-on-error) + "If non-nil, all doom functions will be verbose. Set DEBUG=1 in the command +line or use --debug-init to enable this.") (defvar doom-emacs-dir user-emacs-directory "The path to this emacs.d directory")