screwlisp proposes kittens

Installing common lisp etc like I use it geared for beginners

All my other articles are predicated on a minimal, popular setup that has a clearly drawable history from the 60s until now. I think that Rob Pike complaining about how popular it was in 2000 and Strandh in 2008 show it’s popular. For a current reference, look at my friend Sacha’s body of work and conference. Stuff that is popular, was popular 10 and 20 years ago and also 50 years ago does not go away overnight. Normally the person telling you it’s not used anymore is trying to sell you something to use instead.

Our purpose here is we need several of the major lisp interpreters/compilers (they are different enough to all be needed), and we will get emacs with slime “superior lisp interaction mode for emacs” and eev “I forgot what eev stands for”. slime makes lisp be like lisp’s always been like, and eev makes emacs easy to control for certain meanings of the word easy and certain meanings of the word control.

Lisp compilers and emacs environment from your package manager

On anything like a normal computer, you just do this:

doas pkg_add ecl clisp sbcl git emacs

on a BSD where doas is like entering an admin password to install programs for every user of the computer.

On debian, the equivalent would be

sudo apt install -y ecl clisp sbcl git emacs

if you don’t know how to do some version of exactly this for your personal computer, reach out to me or just howl into the void on the Mastodon and you will receive plentiful and enthusiastic help.

These were Embeddable common lisp, GNU C lisp, Steel bank common lisp, git (some thing by the linux guy) and emacs which is an incarnation of the One True Editor.

Setting up emacs

I guess this is the scary step.

  1. Run emacs
  2. Type M-x package-list <ret> = "alt+x (release alt+x) package-list <press enter>"
  3. Type C-s <space>eev <ret> = "control+s (release control+s) (press space)eev <press enter>"
  4. Press i (for install) then x for execute

we’re halfway there. Do your computer’s variation on the following. Same advice rule as above.

You might want to install slime differently. Check out https://slime.common-lisp.dev/doc/html/ which is a very useable web document.

mkdir ~/common-lisp/
cd ~/common-lisp/
git clone https://github.com/slime/slime

mkdir ~/.emacs.d/
cd ~/.emacs.d/
ln -s ~/common-lisp/slime

Press C-x C-f ~/.emacs/init.el = Hold down control, tap x, tap f, release control, write ~/emacs/init.el and press enter

add these at the top:

(add-to-list 'load-path "~/.emacs.d/slime/")
(require 'slime-autoloads)

(require 'eev-load)
(eev-mode 1)

Okay, we did it.

You should definitely pick up and get to know the other lisp compilers I didn’t mention as well. gcl, ccl, sicl and abcl spring to mind. Note sbcl’s parent was the well-known cmucl (Carnegie Melon University Common Lisp python compiler).

Conclusion

At this point, you too are part of the lisp community. Welcome aboard.

Fin.

See you on the Mastodon, where I look forward to you howling for help.

screwlisp proposes kittens