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:
parent
8b25abc11c
commit
31143f9f9e
1 changed files with 4 additions and 4 deletions
|
@ -3,11 +3,11 @@
|
||||||
@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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue