I have benefited a lot from Bill Clementson's blog, and have 'borrowed' some instructions and the elisp code to start SLIME in Emacs from him (thanks!). Really, that may be enough information to get most people going, but there are a few other steps here that may be helpful.
I've used these instructions for both Windows XP and Vista. You'll need something to unpack .tar.gz file (I use 7-Zip)
- Setting up Windows
- Make sure your HOME environment variable points to your home directory. For me, this is:
c:\Documents and Settings\ben (in XP)
c:\Users\ben (in Vista)
- Make sure your HOME environment variable points to your home directory. For me, this is:
- Installing Emacs
- Install Emacs 22. Don't use XEmacs. Nothing personal, but as of two weeks ago it couldn't make system calls in Vista.
- Installing SLIME
- Create a cl-library\site directory in your HOME directory. (C:\Users\ben\cl-library\site in Vista)
- Download and install SLIME to HOME\cl-library\site\slime
- Installing Lisps
- Install SBCL to c:\sbcl
- If you have previously installed sbcl to another location, uninstall it, and make sure that the environment variables are cleared out.
- Install CLISP. At the time I'm writing this, the default location is OK.
NOTE: I think I've had trouble with emacs making system calls
with spaces in the pathnames, so modify the default
install locations to have no spaces.
- Installing ASDF
- Install CVS if you don't have it. (You'll need the latest version if you're behind a firewall)
- Open a command prompt and change to the HOME\cl-library directory. CVS will check out the asdf library to this location.
- Install asdf from CVS. The cliki page has a link to directions. Here is what I did:
cvs -d:pserver:anonymous@cclan.cvs.sourceforge.net:/cvsroot/cclan login
cvs -z3 -d:pserver:anonymous@cclan.cvs.sourceforge.net:/cvsroot/cclan co -P asdf - To use this from the REPL type:
(load "C:/Users/bholm1/cl-library/asdftools.lisp")
SBCL comes with asdf, so skip to step 4 if you only plan to use SBCL.
- Initialization Files
- Read through and follow Bill Clementson's directions for CLISP (I'll see if I can't get permission to post my version here)
- Add an SBCL function right before or after the clisp function:
;; SBCL
;; Note that the CLISP version is part of the path
(defun sbcl ()
(interactive)
(setq inferior-lisp-program (concat bin-dir "sbcl/1.0.6/sbcl.exe"
" --core " bin-dir "sbcl/1.0.6/sbcl.core"))
(load "slime")) - Create a file HOME\.clisprc.lisp with the contents (don't forget to adjust the path):
(nconc CUSTOM:*LOAD-PATHS* (list #P"c:\\Users\\ben\\cl-library\\**\\")) - You SHOULD be able to load SLIME at this point. Run emacs and:
M-X sbcl
M-x slime
.... OR ....
M-x clisp
M-x slime
Ok. You're up and running. Let me know if you have any trouble with these directions. As I get corrections / suggestions I update this. Good luck!!