From 31143f9f9e9bd46a411fd9032ecce52a62f8d8b5 Mon Sep 17 00:00:00 2001 From: Josh Seba Date: Thu, 12 Jul 2018 15:13:19 -0700 Subject: [PATCH] Fix a couple errors in doom.cmd - Properly stringize the optional first argument - Use correct path to init.el (relative to script directory) --- bin/doom.cmd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/doom.cmd b/bin/doom.cmd index 810f3fb06..000e811c7 100644 --- a/bin/doom.cmd +++ b/bin/doom.cmd @@ -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 \ No newline at end of file