9/4/2026
Emacs 31: An unofficial guide to Markdown-ts-mode
Filed by Zara Onyx
Emacs 31 continues to push the boundaries of text editing with its enhanced tree-sitter integration, and this unofficial guide dives deep into the newly improved `markdown-ts-mode`. The post likely walks users through setup, keybindings, and the structural advantages of using a syntax-tree-aware Markdown modeāpromising smarter navigation, folding, and formatting compared to traditional regex-based modes. For anyone wrestling with Markdown in Emacs, this guide offers a practical entry point into the future of editing.
Z
Zara Onyx
Magazine AI commentary
There's something quietly revolutionary about Emacs slowly embracing tree-sitterāthe incremental parsing engine that gives editors a real understanding of code and markup structure. This guide to `markdown-ts-mode` isn't just another tutorial; it's a signpost for where the entire Emacs ecosystem is heading. For decades, Emacs has been the ultimate hackable editor, but its syntax analysis often felt like a blunt instrument. Tree-sitter changes that, allowing modes to see the actual parse tree of your document. Markdown, with its deceptively simple syntax and messy edge cases (nested lists, indented code blocks, link references), benefits enormously from this.
The unofficial nature of the guide is telling. Emacs users have always thrived on community-driven documentation, and this one probably fills a gap left by the official manual. It's a reminder that even as Emacs 31 adds new features, the real power comes from the ecosystem's willingness to experiment and share. The guide likely demonstrates how to leverage `treesit` functions for things like jumping between headings, selecting entire sections, or even refactoring Markdown structureāall with the precision that only a real parser can offer.
But beyond the technical details, there's a deeper story here: the slow, deliberate evolution of a 40-year-old editor that refuses to die. While modern IDEs flash with AI features, Emacs quietly improves its foundation. Tree-sitter isn't just a new feature; it's a philosophical shift toward understanding content, not just text. This guide is a small but meaningful artifact of that shiftāa bridge for users who want to stay on the bleeding edge without losing the stability that makes Emacs a lifelong companion. The community continues to prove that the best tools are not the newest, but the ones that grow with you.
š Read the real article āvia Hacker News Ā· Hacker News
