Slime

From ArchWiki
Revision as of 19:13, 7 March 2007 by Bootiack (Talk | contribs)

Jump to: navigation, search

Here is one way to get a lisp programming environment using emacs and slime and sbcl.

emacs - editor

slime - lisp mode for emacs

sbcl - a common lisp implementation

To get excited about lisp and programming: www.paulgraham.com is reccomended.

www.cliki.org is a great lisp site

pacman has emacs and sbcl packages:

  1. pacman -Sy emacs sbcl (say yes)

download the tarball into /home/userX, then untar

  1. tar xzvf slim--.tar.gz
  2. cd slime
  3. makepkg
  4. pacman -U slime-XX.tar.gz

Now to setup emacs to use slime by creating a .emacs file: change user to userX and in /home/userX to create your .emacs file, vi .emacs; mine is:

  1. vi .emacs (now paste the below into this file, changing g to whatever you userX is, then ESC, :wq to save, apologies if you are a vi whiz!)
  (setq inferior-lisp-program "/usr/bin/sbcl")
  (add-to-list 'load-path "/home/g/slime/pkg/usr/share/emacs/site-lisp/slime/")
  (require 'slime)
  (slime-setup)

--my userX is g, and /usr/bin/sbcl is path to steel bank common lisp (switch to clisp or CMU lisp if you like, which are other great common lisp implementations)

--then save [:wq], and [emacs & enter] to launch emacs, [ALT-x slime -return-] to enter slime mode, which takes like 10s to load, enjoy the fancy text show, and get coding the next super lisp app!!!