Revision | fa018703c4c476c6ab927e64aa07ba45487e152b (tree) |
---|---|
Time | 2023-04-21 16:46:48 |
Author | badcoff33 |
Commiter | badcoff33 |
quick start of plain emacs by -c
@@ -1,9 +1,13 @@ | ||
1 | 1 | @echo off |
2 | 2 | |
3 | -SET CLIENT=%LOCALAPPDATA%\Programs\Emacs\bin\emacsclient.exe | |
4 | -SET SERVER=%LOCALAPPDATA%\Programs\Emacs\bin\runemacs.exe | |
5 | -if "%1" == "" %SERVER% & GOTO EOF | |
3 | +SET EMACSHOME=%LOCALAPPDATA%\Programs\Emacs\bin | |
4 | +SET CLIENT=%EMACSHOME%\emacsclient.exe | |
5 | +SET STARTSERVER=%EMACSHOME%\runemacs.exe | |
6 | +SET EMACS=%EMACSHOME%\emacs.exe | |
6 | 7 | |
7 | -%CLIENT% --no-wait -a %SERVER% %* | |
8 | +if "%1" == "-c" %EMACS% -nw -Q %2 %3 %4 %5 %6 & GOTO EOF | |
9 | +if "%1" == "" %STARTSERVER% & GOTO EOF | |
8 | 10 | |
9 | -:EOF | |
\ No newline at end of file | ||
11 | +%CLIENT% --no-wait -a %STARTSERVER% %* | |
12 | + | |
13 | +:EOF |