<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>&gt;I am really struggling to get CM to work on my windows machine - I 
wonder <BR>&gt;if any of you can give me a step-by-step guide...</DIV>
<DIV><FONT face=Courier size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier size=2>Here is how to run cm in clisp under windows 
using xemacs.<BR>I'll use unix style pathnames since xemacs and lisp 
support<BR>them under windows.</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier size=2>1. lets assume that you have installed the latest 
</FONT></DIV>
<DIV><FONT face=Courier size=2>&nbsp;&nbsp; cm in the 
directory:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
c:/cm-2.3.4/<BR>&nbsp;&nbsp; you should have the following 
files:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
c:/cm-2.3.4/bin/lisp.exe<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
c:/cm-2.3.4/bin/cm.mem<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
c:/cm-2.3.4/bin/cminit.lisp</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier size=2>2. Locate your Xemacs initialization file. On my 
windows<BR>&nbsp;&nbsp; machine xemacs installed it 
as:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
c:/.xemacs/custom.el</FONT></DIV>
<DIV><FONT face=Courier size=2>&nbsp;&nbsp; If you dont have an xemacs init file 
then start xemacs</FONT></DIV>
<DIV><FONT face=Courier size=2>&nbsp;&nbsp;&nbsp;and select "Save Options to 
Init File" under the main</FONT></DIV>
<DIV><FONT face=Courier size=2>&nbsp;&nbsp; Options menu. That will create 
c:/.xemacs/custom.el</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier><FONT size=2>3. Get the following file from ccrma's ftp 
server <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><A 
href="ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/cm.el"><FONT 
size=2>ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/cm.el</FONT></A><BR><FONT 
size=2>&nbsp;&nbsp; Put it in /.xemacs along with your custom.el 
file.</FONT></FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier size=2>4. Edit your /.xemacs/custom.el file and add the 
following <BR>&nbsp;&nbsp; four lines. Note that the long line starting "(setq 
...)"<BR>&nbsp;&nbsp; must really be on a single line in your custom.el 
file,</FONT></DIV>
<DIV><FONT face=Courier size=2>&nbsp;&nbsp; ie it cannot contain an embedded 
Return character:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Courier size=2>(require 'inf-lisp)<BR>(load 
"c:/.xemacs/cm.el")<BR>(setq inferior-lisp-program "c:/cm-2.3.4/bin/lisp.exe -M 
c:/cm-2.3.4/bin/cm.mem -i c:/cm-2.3.4/bin/cminit.lisp")<BR>(global-set-key 
"\C-x\l" 'lisp-listener)</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV><FONT face=Courier>
<DIV><BR><FONT size=2>5. Quit and restart xemacs, this will reload your 
custom.el<BR>&nbsp;&nbsp; file so the changes take effect.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>6. Type:&nbsp;&nbsp; C-x l <BR>&nbsp; (this means to hold 
control key down while typeing x, then <BR>&nbsp; release the control key and 
type l. You can remember this<BR>&nbsp; because "l" stands for 
Lisp.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>7. A new window should pop up with cm running in 
it...</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>8. Edit a lisp file, this will put the edit buffer in Lisp 
Mode<BR>&nbsp;&nbsp; and give you the Lisp menu in the buffer's menu bar. You 
can<BR>&nbsp;&nbsp; use commands from this menu to interact with the Lisp 
window.<BR>&nbsp;&nbsp; The commands will work in all lisps 
(clisp,acl,cmucl,sbcl).</FONT></DIV>
<DIV><FONT size=2>&nbsp; &nbsp;To automatically activate lisp-mode whenever you 
edit<BR>&nbsp;&nbsp; any file related to cm and clm add the following 
to<BR>&nbsp;&nbsp; your custom.el file:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; (setq auto-mode-alist<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
(append '(("</FONT><A href="file://\\.clm$"><FONT size=2>\\.clm$</FONT></A><FONT 
size=2>"&nbsp; . 
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;("</FONT><A 
href="file://\\.cm$"><FONT size=2>\\.cm$</FONT></A><FONT size=2>"&nbsp;&nbsp; . 
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
("</FONT><A href="file://\\.cmn$"><FONT size=2>\\.cmn$</FONT></A><FONT 
size=2>"&nbsp; . 
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;("</FONT><A href="file://\\.ins$"><FONT size=2>\\.ins$</FONT></A><FONT 
size=2>"&nbsp; . 
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;("</FONT><A href="file://\\.cl$"><FONT size=2>\\.cl$</FONT></A><FONT 
size=2>"&nbsp;&nbsp; . 
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
("</FONT><A href="file://\\.lisp$"><FONT size=2>\\.lisp$</FONT></A><FONT 
size=2>" . 
lisp-mode)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;("</FONT><A 
href="file://\\.scm$"><FONT size=2>\\.scm$</FONT></A><FONT size=2>" . 
lisp-mode)) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
auto-mode-alist))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</FONT></DIV>
<DIV><FONT size=2>I hope this helps!&nbsp;For what its worth I&nbsp;verified 
these instructions&nbsp;on a windows machine I dont normally use</FONT></DIV>
<DIV><FONT size=2>so they should actually work for someone other than 
me.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2></FONT></FONT>&nbsp;</DIV></BODY></HTML>