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.
Emacs, Work with Brackets
- Emacs Init: Highlight Brackets
- Emacs Init: Auto Insert Closing Bracket (electric-pair-mode)
- Emacs: Insert Brackets by Pair 🚀
- Emacs: Delete Brackets by Pair 🚀
- Emacs: Move Cursor to Bracket 🚀
- Emacs: Jump to Matching Bracket 🚀
- Emacs: Change Brackets 🚀
- Emacs: Navigate Lisp Code as Tree
- Emacs: Select Text Between Quotes 🚀
- Emacs: Xah Elisp Mode 📦