Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Setting up tree-sitter in Emacs

Not available yet. Emacs 29+ can load the grammar itself, but highlighting also needs a macaulay2-ts-mode that maps the grammar’s captures to faces, and nobody has written one.

Until then, Macaulay2’s own M2-mode handles highlighting, and the language server adds semantic highlighting on top.

If you’d like to write the major mode, the grammar’s queries/highlights.scm is the place to start; contributions are very welcome.