SE701:EmacsSlimeLispAtHome

From Marks Wiki
Jump to navigation Jump to search

Windows

Please help expand upon this. Its currently incomplete.

  1. Install SBCL
  2. Install Emacs
  3. Unzip Slime
  4. create a %HOME% env variable (Right click my computer -> properties -> Advanced system settings)
  5. Create a .emacs file (in your %HOME% dir) you might need to create a text file and use dos to rename it to .emacs (as windows does not recognise .emacs as a valid file name, type rename "New Text Document.txt" .emacs in a dos prompt, at the location of the new text file)
  6. add this code ...soon to come...

...

To run your programs

  1. Start emacs
  2. control-l to get a fresh document
  3. alt-x to run a command
  4. type "lisp-mode" enter
  5. alt-x
  6. type "slime" enter

...

OSX

  1. Install MacPorts
  2. Edit your ~/.profile to include the following lines, if MacPorts didn't already add them:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/share/man:$MANPATH
  1. Run "sudo port install slime emacs sbcl"
  2. Add the following to your ~/.emacs
(setq inferior-lisp-program "/opt/local/bin/sbcl --noinform")
(require 'slime)
(slime-setup)

You should now be able to fire up emacs, and M-x slime!