Kawatab's tips

This is my tips for using and setting up Computer, mainly Linux. (English | Magyar | 日本語)

SBCL

Install Quicklisp

http://golems.github.io/motion-grammar-kit/install.html

Quicklisp is a package manager for lisp, similar to CPAN, RubyGems, Python's easy_install, and ELPA. At the time of writing, it is the easiest way to install Lisp packages. You can install Quicklisp from http://www.quicklisp.org/.

Alternatively, Debian Wheezy and Ubuntu Precise (or later) contain a package for quicklisp:

$ sudo apt-get install cl-quicklisp

Then, the following command will setup quicklisp for your user account:

$ sbcl --load /usr/share/cl-quicklisp/quicklisp.lisp \
       --eval '(quicklisp-quickstart:install)'       \
       --eval '(ql:add-to-init-file)'                \
       --eval '(quit)'

Installing SBCL

Installing

# aptitude install sbcl

emacs settings

Write the following code into ~/.emacs or ~/.emacs.d/init.el

(add-to-list 'load-path "/usr/share/common-lisp/source/slime")
(setq inferior-lisp-program "/usr/bin/sbcl")
(slime-setup)

Start REPL

M-x slime

Exit REPL

(sb-ext::quit)