July 5, 2020

Ubuntu: SBCL Lisp + quicklisp + emacs + slime

It's been a while since I touched lisp.  Seems much simpler to set things up:

Install SBCL, emacs, slime

$ sudo apt-get install sbcl emacs slime


Install quicklisp
https://www.quicklisp.org/beta/#installation

$ curl -O https://beta.quicklisp.org/quicklisp.lisp
$ sbcl --load quicklisp.lisp
* (quicklisp-quickstart:install)
* (ql:add-to-init-file)



Test
  1. $ emacs test.lisp
  2. M-x slime
  3. edit some defun, and ctrl-c, ctrl-c to compile
  4. In slime window, call the defun.

I remember trying to install and run slime many years ago; it was very confusing and didn't work properly, then I gave up.  I ended up using eclipse + lisp addon instead.  Now it is very easy to set up -- very nice.



No comments: