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,12 +3,12 @@
|
|||
@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
|
||||
ECHO ON
|
||||
ECHO ON
|
Loading…
Add table
Add a link
Reference in a new issue