<!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>>I am really struggling to get CM to work on my windows machine - I
wonder <BR>>if any of you can give me a step-by-step guide...</DIV>
<DIV><FONT face=Courier size=2></FONT> </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> </DIV>
<DIV><FONT face=Courier size=2>1. lets assume that you have installed the latest
</FONT></DIV>
<DIV><FONT face=Courier size=2> cm in the
directory:<BR>
c:/cm-2.3.4/<BR> you should have the following
files:<BR>
c:/cm-2.3.4/bin/lisp.exe<BR>
c:/cm-2.3.4/bin/cm.mem<BR>
c:/cm-2.3.4/bin/cminit.lisp</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>2. Locate your Xemacs initialization file. On my
windows<BR> machine xemacs installed it
as:<BR>
c:/.xemacs/custom.el</FONT></DIV>
<DIV><FONT face=Courier size=2> If you dont have an xemacs init file
then start xemacs</FONT></DIV>
<DIV><FONT face=Courier size=2> and select "Save Options to
Init File" under the main</FONT></DIV>
<DIV><FONT face=Courier size=2> Options menu. That will create
c:/.xemacs/custom.el</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier><FONT size=2>3. Get the following file from ccrma's ftp
server <BR> </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> Put it in /.xemacs along with your custom.el
file.</FONT></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>4. Edit your /.xemacs/custom.el file and add the
following <BR> four lines. Note that the long line starting "(setq
...)"<BR> must really be on a single line in your custom.el
file,</FONT></DIV>
<DIV><FONT face=Courier size=2> ie it cannot contain an embedded
Return character:</FONT></DIV>
<DIV><FONT size=2></FONT> </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> </DIV><FONT face=Courier>
<DIV><BR><FONT size=2>5. Quit and restart xemacs, this will reload your
custom.el<BR> file so the changes take effect.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>6. Type: C-x l <BR> (this means to hold
control key down while typeing x, then <BR> release the control key and
type l. You can remember this<BR> because "l" stands for
Lisp.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>7. A new window should pop up with cm running in
it...</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>8. Edit a lisp file, this will put the edit buffer in Lisp
Mode<BR> and give you the Lisp menu in the buffer's menu bar. You
can<BR> use commands from this menu to interact with the Lisp
window.<BR> The commands will work in all lisps
(clisp,acl,cmucl,sbcl).</FONT></DIV>
<DIV><FONT size=2> To automatically activate lisp-mode whenever you
edit<BR> any file related to cm and clm add the following
to<BR> your custom.el file:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> (setq auto-mode-alist<BR>
(append '(("</FONT><A href="file://\\.clm$"><FONT size=2>\\.clm$</FONT></A><FONT
size=2>" .
lisp-mode)<BR> ("</FONT><A
href="file://\\.cm$"><FONT size=2>\\.cm$</FONT></A><FONT size=2>" .
lisp-mode)<BR>
("</FONT><A href="file://\\.cmn$"><FONT size=2>\\.cmn$</FONT></A><FONT
size=2>" .
lisp-mode)<BR>
("</FONT><A href="file://\\.ins$"><FONT size=2>\\.ins$</FONT></A><FONT
size=2>" .
lisp-mode)<BR>
("</FONT><A href="file://\\.cl$"><FONT size=2>\\.cl$</FONT></A><FONT
size=2>" .
lisp-mode)<BR>
("</FONT><A href="file://\\.lisp$"><FONT size=2>\\.lisp$</FONT></A><FONT
size=2>" .
lisp-mode)<BR> ("</FONT><A
href="file://\\.scm$"><FONT size=2>\\.scm$</FONT></A><FONT size=2>" .
lisp-mode)) <BR>
auto-mode-alist))<BR>
</FONT></DIV>
<DIV><FONT size=2>I hope this helps! For what its worth I verified
these instructions 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> </DIV>
<DIV><FONT size=2></FONT></FONT> </DIV></BODY></HTML>