Add ability to pass additional args to 'doom run'
This commit is contained in:
parent
92b8222529
commit
bc5621adb6
1 changed files with 14 additions and 2 deletions
16
bin/doom.cmd
16
bin/doom.cmd
|
@ -1,10 +1,22 @@
|
|||
:: Forward the ./doom script to Emacs
|
||||
|
||||
@ECHO OFF
|
||||
SETLOCAL ENABLEDELAYEDEXPANSION
|
||||
|
||||
PUSHD "%~dp0" >NUL
|
||||
|
||||
IF "%1"=="runemacs" (
|
||||
start runemacs --quick --no-splash -l ..\init.el -f "doom|run-all-startup-hooks"
|
||||
SET args=
|
||||
SET command=%1
|
||||
|
||||
:LOOP
|
||||
SHIFT /1
|
||||
IF NOT [%1]==[] (
|
||||
SET args=%args% %1
|
||||
GOTO :LOOP
|
||||
)
|
||||
|
||||
IF [%command%]==[run] (
|
||||
start runemacs -Q %args% -l ..\init.el -f "doom|run-all-startup-hooks"
|
||||
) ELSE (
|
||||
emacs --quick --script .\doom -- %*
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue