From 31be70b565ae5a79be084e0cfc8415132d3211bb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 20 Sep 2022 13:34:58 +0200 Subject: [PATCH] tweak(cli): add --debug-init if $DEBUG=1 For more debug output, and sooner. --- bin/doom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/doom b/bin/doom index 8450cebae..8e0bbf65f 100755 --- a/bin/doom +++ b/bin/doom @@ -1,7 +1,7 @@ #!/usr/bin/env sh :; # -*- mode: emacs-lisp; lexical-binding: t -*- :; case "$EMACS" in *term*) EMACS=emacs ;; *) EMACS="${EMACS:-emacs}" ;; esac -:; emacs="$EMACS -q --no-site-file --batch" +:; emacs="$EMACS ${DEBUG:+--debug-init} -q --no-site-file --batch" :; tmpdir=`$emacs --eval '(princ (temporary-file-directory))' 2>/dev/null` :; [ -z "$tmpdir" ] && { >&2 echo "Error: failed to run Emacs with command '$EMACS'"; >&2 echo; >&2 echo "Are you sure Emacs is installed and in your \$PATH?"; exit 1; } :; export __DOOMPID="${__DOOMPID:-$$}"