From 1d3028688fdb9002d260a5c82bf86b757e6d537e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 5 May 2024 00:41:29 -0400 Subject: [PATCH] perf(cli): bin/doom startup The call to find temporary-file-directory be a little faster with a truly barren Emacs session. --- bin/doom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/doom b/bin/doom index 32504f224..190003b8e 100755 --- a/bin/doom +++ b/bin/doom @@ -2,7 +2,7 @@ :; # -*- mode: emacs-lisp; lexical-binding: t -*- :; case "$EMACS" in *term*) EMACS=emacs ;; *) EMACS="${EMACS:-emacs}" ;; esac :; emacs="$EMACS ${DEBUG:+--debug-init} -q --no-site-file --batch" -:; tmpdir=`$emacs --eval '(princ (temporary-file-directory))' 2>/dev/null` +:; tmpdir=`$emacs -Q --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:-$$}" :; export __DOOMSTEP="${__DOOMSTEP:-0}"