refactor(cli): remove superfluous emacs switches
Neither --no-x-resources or --no-splash are relevant to a noninteractive session.
This commit is contained in:
parent
a0fc7bad5a
commit
0172b180a9
2 changed files with 2 additions and 2 deletions
2
bin/doom
2
bin/doom
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
:; # -*- mode: emacs-lisp; lexical-binding: t -*-
|
:; # -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||||
:; case "$EMACS" in *term*) EMACS=emacs ;; *) EMACS="${EMACS:-emacs}" ;; esac
|
:; case "$EMACS" in *term*) EMACS=emacs ;; *) EMACS="${EMACS:-emacs}" ;; esac
|
||||||
:; emacs="$EMACS -q --no-site-file --no-x-resources --no-splash --batch"
|
:; emacs="$EMACS -q --no-site-file --batch"
|
||||||
:; tmpdir=`$emacs --eval '(princ (temporary-file-directory))' 2>/dev/null`
|
:; 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; }
|
:; [ -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 __DOOMPID="${__DOOMPID:-$$}"
|
||||||
|
|
|
@ -28,7 +28,7 @@ esac
|
||||||
# directory from `load-path', which would prevent Doom from manually loading the
|
# directory from `load-path', which would prevent Doom from manually loading the
|
||||||
# site files later. These are important on some systems or deployment methods
|
# site files later. These are important on some systems or deployment methods
|
||||||
# (like Snap or NixOS).
|
# (like Snap or NixOS).
|
||||||
emacs="$EMACS -q --no-site-file --no-x-resources --no-splash --batch"
|
emacs="$EMACS -q --no-site-file --batch"
|
||||||
|
|
||||||
# $TMPDIR (or $TEMP and $TMP on Windows) aren't guaranteed to have values, and
|
# $TMPDIR (or $TEMP and $TMP on Windows) aren't guaranteed to have values, and
|
||||||
# mktemp isn't available on all systems, but you know what is? Emacs! So I rely
|
# mktemp isn't available on all systems, but you know what is? Emacs! So I rely
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue