Merge pull request #755 from jseba/doom-cmd
Improvements for doom.cmd script
This commit is contained in:
commit
bfa97e798a
2 changed files with 16 additions and 5 deletions
19
bin/doom.cmd
19
bin/doom.cmd
|
@ -1,13 +1,24 @@
|
||||||
:: Forward the ./doom script to Emacs
|
:: Forward the ./doom script to Emacs
|
||||||
|
|
||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
|
SETLOCAL ENABLEDELAYEDEXPANSION
|
||||||
|
|
||||||
PUSHD "%~dp0" >NUL
|
PUSHD "%~dp0" >NUL
|
||||||
|
|
||||||
IF %1=="run" (
|
SET args=
|
||||||
SHIFT
|
SET command=%1
|
||||||
emacs -Q %* -l init.el -f "doom|run-all-startup-hooks"
|
|
||||||
|
: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 (
|
) ELSE (
|
||||||
emacs --quick --script ./doom -- %*
|
emacs --quick --script .\doom -- %*
|
||||||
)
|
)
|
||||||
|
|
||||||
POPD >NUL
|
POPD >NUL
|
||||||
|
|
2
init.el
2
init.el
|
@ -27,7 +27,7 @@
|
||||||
;;
|
;;
|
||||||
;;; License: MIT
|
;;; License: MIT
|
||||||
|
|
||||||
(unless (boundp 'early-init-file)
|
(unless (bound-and-true-p early-init-file)
|
||||||
(load (concat (file-name-directory load-file-name) "early-init")
|
(load (concat (file-name-directory load-file-name) "early-init")
|
||||||
nil t))
|
nil t))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue