Commit | Line | Data |
---|---|---|
8cb2d3e0 GV |
1 | @echo off\r |
2 | \r | |
3 | REM Change this to the directory into which you installed Emacs:\r | |
4 | set emacs_path=C:\emacs\r | |
5 | \r | |
6 | REM\r | |
7 | REM You shouldn't have to change any of the below.\r | |
8 | REM\r | |
9 | \r | |
10 | REM Set OS specific values.\r | |
11 | set ARCH_SAVE=%PROCESSOR_ARCHITECTURE%\r | |
12 | set PROCESSOR_ARCHITECTURE=\r | |
13 | if "%ARCH_SAVE%" == "%PROCESSOR_ARCHITECTURE%" goto win95\r | |
14 | set PROCESSOR_ARCHITECTURE=%ARCH_SAVE%\r | |
15 | set SHELL=cmd\r | |
16 | goto next\r | |
17 | \r | |
18 | :win95\r | |
19 | set SHELL=command\r | |
20 | \r | |
21 | :next\r | |
22 | \r | |
23 | set EMACSLOADPATH=%emacs_path%\lisp\r | |
24 | set EMACSDATA=%emacs_path%\etc\r | |
25 | set EMACSPATH=%emacs_path%\bin\r | |
26 | set EMACSLOCKDIR=%emacs_path%\lock\r | |
27 | set INFOPATH=%emacs_path%\info\r | |
28 | set EMACSDOC=%emacs_path%\etc\r | |
29 | set TERM=CMD\r | |
30 | \r | |
31 | REM The variable HOME is used to find the startup file, ~\_emacs. Ideally,\r | |
32 | REM this will not be set in this file but should already be set before\r | |
33 | REM this file is invoked. If HOME is not set, use some generic default.\r | |
34 | \r | |
35 | set HOME_SAVE=%HOME%\r | |
36 | set HOME_EXISTS=yes\r | |
37 | set HOME_DEFAULT=C:\\r | |
38 | set HOME=\r | |
39 | if "%HOME%" == "%HOME_SAVE%" set HOME_EXISTS=no\r | |
40 | if "%HOME_EXISTS%" == "yes" set HOME=%HOME_SAVE%\r | |
41 | if "%HOME_EXISTS%" == "no" set HOME=%HOME_DEFAULT%\r | |
42 | if "%HOME_EXISTS%" == "no" echo HOME is not set! Using %HOME% as a default...\r | |
43 | \r | |
44 | %emacs_path%\bin\emacs.exe %1 %2 %3 %4 %5 %6 %7 %8 %9\r |