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