doomemacs/bin/doom.cmd

15 lines
220 B
Batchfile
Raw Normal View History

:: Forward the ./doom script to Emacs
@ECHO OFF
PUSHD "%~dp0" >NUL
IF %1=="run" (
SHIFT
2018-07-09 21:29:38 +08:00
emacs -Q %* -l init.el -f "doom|run-all-startup-hooks"
) ELSE (
2018-07-09 21:29:38 +08:00
emacs --quick --script ./doom -- %*
)
POPD >NUL
ECHO ON