%* doesn't behave as expected

%* is unaffected by SHIFT, so using it results in Emacs loading a
buffer named "run" on startup.

In order to preserve running all supported commands directly with
the bin/doom script, change the magic string in doom.cmd to one that
is unused ("runemacs")
This commit is contained in:
Josh Seba 2018-07-13 15:51:22 -07:00
parent 58b723bc54
commit 92b8222529

View file

@ -3,9 +3,8 @@
@ECHO OFF
PUSHD "%~dp0" >NUL
IF "%1"=="run" (
SHIFT
start runemacs -Q %* -l ..\init.el -f "doom|run-all-startup-hooks"
IF "%1"=="runemacs" (
start runemacs --quick --no-splash -l ..\init.el -f "doom|run-all-startup-hooks"
) ELSE (
emacs --quick --script .\doom -- %*
)