1) sudo apt-get install emacs22-gtk sbcl slime
2) add the following lines to .emacs on home folder.
(setq inferior-lisp-program "/usr/bin/sbcl")
(add-to-list 'load-path "/usr/share/common-lisp/source/slime/")
(require 'slime)
(slime-setup)
Done.
To test your installation:
1) Open emacs: (Applications -> Accessories -> Emacs 22 (GTK)
2) Press ALT + X
3) type slime
SBCL will start you should get a prompt like this:
; SLIME 2010-01-19
CL-USER>
4) On the prompt type "Hello, World."
You should see this:
; SLIME 2010-01-19
CL-USER> "Hello, World."
"Hello, World."
CL-USER>
5) Congratulations! You have just ran the first obligatory application on any language, but in Lisp!
6) To quit SLIME+LISP: press , then type quit
7) To quit emacs: CTRL+X CTRL+C
6) To quit SLIME+LISP: press , then type quit
7) To quit emacs: CTRL+X CTRL+C
No comments:
Post a Comment