From 98d7b97d33a0d482d96a5cbd19313d8a36f0487b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 17 May 2020 06:10:34 -0400 Subject: [PATCH] Fix 'doom run' not (re)executing startup hooks Makes leader keys (among other things) unable to function. --- bin/doom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/doom b/bin/doom index d2dfce4f1..6ce7dc813 100755 --- a/bin/doom +++ b/bin/doom @@ -5,7 +5,7 @@ :; case "$VERSION" in *\ 2[0-5].[0-9]) echo "Detected Emacs $VERSION"; echo "Doom only supports Emacs 26.1 and newer"; echo; exit 2 ;; esac :; DOOMBASE="$(dirname "$0")/.." :; [ "$1" = -d ] || [ "$1" = --debug ] && { shift; export DEBUG=1; } -:; [ "$1" = run ] && { cd "$DOOMBASE"; shift; exec $EMACS -q --no-splash -l init.el "$@"; exit 0; } +:; [ "$1" = run ] && { cd "$DOOMBASE"; shift; exec $EMACS -q --no-splash -l init.el -f doom-run-all-startup-hooks-h "$@"; exit 0; } :; exec $EMACS --no-site-file --script "$0" -- "$@" :; exit 0