From 92b8222529a2da7ebe6f9dc7f5075763759a1fa0 Mon Sep 17 00:00:00 2001 From: Josh Seba Date: Fri, 13 Jul 2018 15:51:22 -0700 Subject: [PATCH] %* 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") --- bin/doom.cmd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/doom.cmd b/bin/doom.cmd index 7d9e6179b..8097a37bd 100644 --- a/bin/doom.cmd +++ b/bin/doom.cmd @@ -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 -- %* )