mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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
|
Reference in New Issue
Block a user