a0604e3feb
- Using "start" will allow the batch script to return immediately, rather than waiting for the command to finish. - Using "runemacs" (instead of plain "emacs") will hide the console window that is displayed while Emacs is running
15 lines
234 B
Batchfile
15 lines
234 B
Batchfile
:: Forward the ./doom script to Emacs
|
|
|
|
@ECHO OFF
|
|
PUSHD "%~dp0" >NUL
|
|
|
|
IF "%1"=="run" (
|
|
SHIFT
|
|
start runemacs -Q %* -l ..\init.el -f "doom|run-all-startup-hooks"
|
|
) ELSE (
|
|
emacs --quick --script .\doom -- %*
|
|
)
|
|
|
|
POPD >NUL
|
|
ECHO ON
|