Enable autocomplete in sbcl

I recently started learning lisp and had mostly bin using clisp and vim. I also wanted to try sbcl, as it is often recommended as one of the best, free lisp compilers. However, there is one thing that makes sbcl more difficult for me: I cannot get autocomplete in the REPL that I have in clisp. That is, when I run sbcl and type in the following (as an example),

* (requi<tab>

where <tab>is a literal tab character, I do not get a list of completions, but rather a detailed tab character. In clisp, <tab>complete the previous line before * (require.

Since I'm pretty new to lisp, the autocomplete function in clisp is really convenient, so it would be very convenient if someone could explain how to get it in sbcl.

+5
source share
3 answers

One way to get autocomplete in SBCL is to use linedit, from http://common-lisp.net/project/linedit/ . The second is to use rlwrap, a readline shell, with a suitable completion file. (I think it's fair to say that none of them are used as emacs, which of course also provides REPL termination with many other useful functions.)

+6
source

I don’t know how to get REPL autocomplete in SBCL, but I find that interacting with my lisp environment from inside SLIME is very convenient, and at this point you can use Cc Ci for auto-completion.

+4
source

If you want to use sbcl, emacs and slime, follow this guide to Modern Common Lisp on Linux . The tutorial mentions installation, quicklispand especially (ql:quickload "quicklisp-slime-helper"), elispscript, which causes the mucus to autofill and much more.

0
source

All Articles