forked from andreer/lispbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlispbox.bat
More file actions
31 lines (21 loc) · 703 Bytes
/
lispbox.bat
File metadata and controls
31 lines (21 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
rem Thanks to Venkat who provided this bit of COMMAND wizardry.
if NOT %OS%==Windows_NT goto checkhome
for %%i in ( "%CD%" ) do set LISPBOX_HOME=%%~si%
goto start
:checkhome
rem
rem if the environment variable is not defined, dereferencing
rem it produces the same string!
rem
if %LISPBOX_HOME%==%LISPBOX_HOME% goto noenv
:start
set EMACS=%LISPBOX_HOME%/emacs-23.2/bin/runemacs.exe
set TO_EVAL="(progn (load \"lispbox\") (slime))"
%EMACS% --no-init-file --no-site-file --eval=%TO_EVAL%
goto end
:noenv
echo LISPBOX_HOME environment variable should be set and
echo point to the installation directory of LISPBOX before
echo launching this command.
:end