2018-05-20 10:21:13 +00:00
|
|
|
:: Forward the ./doom script to Emacs
|
|
|
|
|
|
|
|
@ECHO OFF
|
2018-07-16 23:35:05 +00:00
|
|
|
SETLOCAL ENABLEDELAYEDEXPANSION
|
|
|
|
|
2018-05-20 10:21:13 +00:00
|
|
|
PUSHD "%~dp0" >NUL
|
|
|
|
|
2018-07-16 23:35:05 +00:00
|
|
|
SET args=
|
|
|
|
SET command=%1
|
|
|
|
|
|
|
|
:LOOP
|
|
|
|
SHIFT /1
|
|
|
|
IF NOT [%1]==[] (
|
|
|
|
SET args=%args% %1
|
|
|
|
GOTO :LOOP
|
|
|
|
)
|
|
|
|
|
|
|
|
IF [%command%]==[run] (
|
2019-09-14 00:37:07 +00:00
|
|
|
start runemacs -Q %args% -l ..\init.el -f "doom-run-all-startup-hooks-h"
|
2018-05-20 10:21:13 +00:00
|
|
|
) ELSE (
|
2018-07-12 22:13:19 +00:00
|
|
|
emacs --quick --script .\doom -- %*
|
2018-05-20 10:21:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
POPD >NUL
|
2018-07-12 22:45:37 +00:00
|
|
|
ECHO ON
|