Fix a couple errors in doom.cmd

- Properly stringize the optional first argument
- Use correct path to init.el (relative to script directory)
This commit is contained in:
Josh Seba 2018-07-12 15:13:19 -07:00
parent 8b25abc11c
commit 31143f9f9e

View file

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