92b8222529
%* 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")
14 lines
244 B
Batchfile
14 lines
244 B
Batchfile
:: Forward the ./doom script to Emacs
|
|
|
|
@ECHO OFF
|
|
PUSHD "%~dp0" >NUL
|
|
|
|
IF "%1"=="runemacs" (
|
|
start runemacs --quick --no-splash -l ..\init.el -f "doom|run-all-startup-hooks"
|
|
) ELSE (
|
|
emacs --quick --script .\doom -- %*
|
|
)
|
|
|
|
POPD >NUL
|
|
ECHO ON
|