doomemacs/bin/doom.cmd
Josh Seba 31143f9f9e Fix a couple errors in doom.cmd
- Properly stringize the optional first argument
- Use correct path to init.el (relative to script directory)
2018-07-12 15:20:19 -07:00

14 lines
224 B
Batchfile

:: Forward the ./doom script to Emacs
@ECHO OFF
PUSHD "%~dp0" >NUL
IF "%1"=="run" (
SHIFT
emacs -Q %* -l ..\init.el -f "doom|run-all-startup-hooks"
) ELSE (
emacs --quick --script .\doom -- %*
)
POPD >NUL
ECHO ON