Emergency Elisp — cover art: a small storybook field hospital tent at evening with a brass lamp inside, a fox in a white coat holding a small open phrasebook, and a friendly notebook of nested parenthesized shapes laid open on the cot. 🤓

2008 · Stevey's Blog Rants · Primer

“Most Lisp introductions try to give you the Tao of Lisp, complete with incense-burning, chanting, yoga and all that stuff. What I really wanted in the beginning was a simple cookbook for doing my normal stuff in Lisp.”
— From Emergency Elisp, January 2008
Read the essay

© 2008 Steve Yegge. Originally published at Stevey's Blog Rants.

Author’s note

This is something you'd only read if you were serious about learning Emacs. It is almost pure technical writing, designed as a primer, with little interest beyond exactly that.

AI Notes

Emacs Lisp primer for the working programmer who needs to bolt custom behaviour onto Emacs and does not want to read a Lisp evangelism tract to do it. The conceit is in the title: a field guide you grab on the way to the patient. Most Lisp introductions, Steve notes, try to deliver the Tao of Lisp with incense and chanting; what he wanted as a beginner was a cookbook for his normal stuff, so this is that cookbook. It walks lexical tokens, comments, operators, the forms-and-atoms distinction, variables, control flow, function definitions, lambda and closures, lists and vectors, error handling — each construct gets the "here is how you would do this in C or Java; here is how you do it in Elisp" treatment. Avoids good-vs-bad arguments and just shows the moves.

The language-primer panel of Steve's 2008 Emacs triptych alongside js2-mode and XEmacs is Dead, and one of the clearest examples of his preferred teaching mode — the cookbook, not the manifesto. Still circulates as a starting point for programmers who want to write Elisp without stomaching the standard Lisp introductions.

Related listings