Last Updated: February 25, 2016
· fmancinelli

Emacs, SBCL and SLIME

In order to have a working SBCL REPL in Emacs you can do the following:

  • Install QuickLisp
  • Install the quicklisp-slime-helper package
  • Open your .emacs (or .emacs.d/init.el) file and add the following code:

    (load (expand-file-name "~/quicklisp/slime-helper.el"))
    (setq inferior-lisp-program "/usr/bin/sbcl")
    (require 'slime)
    (slime-setup '(slime-fancy slime-tramp slime-asdf))
    (slime-require :swank-listener-hooks)   
  • Start Emacs and do M-x slime

You should have a SBCL REPL running in your buffer.

I did it using this procedure because it seems that the SLIME package installable through ELPA doesn't seem to work, probably because it's an old version.