[CM] help with windows xemacs cm nightmare

Rick Taube taube at uiuc.edu
Fri Jun 28 08:47:52 PDT 2002


>I am really struggling to get CM to work on my windows machine - I wonder 
>if any of you can give me a step-by-step guide...

Here is how to run cm in clisp under windows using xemacs.
I'll use unix style pathnames since xemacs and lisp support
them under windows.

1. lets assume that you have installed the latest 
   cm in the directory:
        c:/cm-2.3.4/
   you should have the following files:
        c:/cm-2.3.4/bin/lisp.exe
        c:/cm-2.3.4/bin/cm.mem
        c:/cm-2.3.4/bin/cminit.lisp

2. Locate your Xemacs initialization file. On my windows
   machine xemacs installed it as:
        c:/.xemacs/custom.el
   If you dont have an xemacs init file then start xemacs
   and select "Save Options to Init File" under the main
   Options menu. That will create c:/.xemacs/custom.el

3. Get the following file from ccrma's ftp server 
         ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/cm.el
   Put it in /.xemacs along with your custom.el file.

4. Edit your /.xemacs/custom.el file and add the following 
   four lines. Note that the long line starting "(setq ...)"
   must really be on a single line in your custom.el file,
   ie it cannot contain an embedded Return character:

(require 'inf-lisp)
(load "c:/.xemacs/cm.el")
(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")
(global-set-key "\C-x\l" 'lisp-listener)


5. Quit and restart xemacs, this will reload your custom.el
   file so the changes take effect.

6. Type:   C-x l 
  (this means to hold control key down while typeing x, then 
  release the control key and type l. You can remember this
  because "l" stands for Lisp.

7. A new window should pop up with cm running in it...

8. Edit a lisp file, this will put the edit buffer in Lisp Mode
   and give you the Lisp menu in the buffer's menu bar. You can
   use commands from this menu to interact with the Lisp window.
   The commands will work in all lisps (clisp,acl,cmucl,sbcl).
   To automatically activate lisp-mode whenever you edit
   any file related to cm and clm add the following to
   your custom.el file:

  (setq auto-mode-alist
      (append '(("\\.clm$"  . lisp-mode)
                ("\\.cm$"   . lisp-mode)
                ("\\.cmn$"  . lisp-mode)
                ("\\.ins$"  . lisp-mode)
                ("\\.cl$"   . lisp-mode)
                ("\\.lisp$" . lisp-mode)
                ("\\.scm$" . lisp-mode)) 
       auto-mode-alist))
           
I hope this helps! For what its worth I verified these instructions on a windows machine I dont normally use
so they should actually work for someone other than me.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20020628/4c0a1790/attachment.html>


More information about the Cmdist mailing list