mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
%* doesn't behave as expected
%* is unaffected by SHIFT, so using it results in Emacs loading a buffer named "run" on startup. In order to preserve running all supported commands directly with the bin/doom script, change the magic string in doom.cmd to one that is unused ("runemacs")
This commit is contained in:
@ -3,9 +3,8 @@
|
|||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
PUSHD "%~dp0" >NUL
|
PUSHD "%~dp0" >NUL
|
||||||
|
|
||||||
IF "%1"=="run" (
|
IF "%1"=="runemacs" (
|
||||||
SHIFT
|
start runemacs --quick --no-splash -l ..\init.el -f "doom|run-all-startup-hooks"
|
||||||
start runemacs -Q %* -l ..\init.el -f "doom|run-all-startup-hooks"
|
|
||||||
) ELSE (
|
) ELSE (
|
||||||
emacs --quick --script .\doom -- %*
|
emacs --quick --script .\doom -- %*
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user