Emacs: How to Edit Lisp Code
This page shows you how to edit lisp code efficiently with plain GNU emacs.
Setup all of the following. This system is more efficient than using paredit.el package or its derivatives.
- You should ALWAYS insert brackets by pair.
- You should ALWAYS delete brackets by pair.
Select Lisp Expression by Syntactical Unit
- Put cursor on the left parenthesis.
- Alt+x
mark-sexp【Ctrl+Alt+Space】 to select a complete parenthesized expression.