From ArchWiki
Revision as of 16:19, 15 June 2007 by Bootiack (talk | contribs) (emacs lisp sbcl slime clisp programming learning free books cliki)
Jump to: navigation, search

Here is one way to get a lisp programming environment using emacs and slime and sbcl. Common Lisp was used to build viaweb by Paul Graham with 3 coders in 1995. It sold to yahoo for 50M us $ and became yahoo store. Lisp also powers Other Lisp resources include scsh, drscheme, the book SICP, and Practical Common Lisp by Peter Seibel(free online), as well as ANSI common lisp and On lisp(free online) by Paul Graham. A gentle introduction to symbolic computation by Touretsky is free online as well. Happy hacking!!!

emacs - editor

slime - lisp mode for emacs

sbcl - a common lisp implementation (clisp is another good one, just substitute clisp for sbcl in the following)

To get excited about lisp and programming: is recommended. is a great lisp site

pacman has emacs and sbcl packages:

  1. su - root
  2. pacman -Sy emacs sbcl (say yes)
  3. cd /home/userX
  4. wget
  5. tar xzvf slim--.tar.gz
  6. cd slime
  7. makepkg
  8. 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)

--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, and there you are a nice working lisp dev environment. Emacs has its own tutorial built in and has info on sbcl..enjoy..