← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Guide to Enabling Experimental markdown-ts-mode in Emacs 31

🔄 Updated 1h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Emacs 31 introduces an experimental markdown-ts-mode.
  • The mode is not enabled by default and requires manual configuration.
  • It supports CommonMark and GitHub Flavored Markdown specifications.
  • The guide provides setup instructions using `use-package` or `autoload`.

Introduction to markdown-ts-mode in Emacs 31

Emacs 31 has been released, introducing several new features, including an experimental markdown-ts-mode. This mode is not automatically active upon installation, requiring users to opt-in for its functionality. Despite its experimental label, the mode is described as feature-rich.

Features and Capabilities

The markdown-ts-mode covers the CommonMark specification and most of the GitHub Flavored Markdown (GFM) specification. It also includes additional features such as code blocks for non-tree-sitter modes (like elisp), table of contents utilities, and interfaces with external converters such as Pandoc and GFM.

Enabling the Experimental Mode

Since markdown-ts-mode is experimental, Emacs does not enable it by default. Users must explicitly load the library. The guide provides two methods for activation: using the `use-package` system for configuration management or a more direct `autoload` approach for those who do not use `use-package`.

Configuration Examples

For `use-package` users, the suggested setup involves adding a `use-package` block to the Emacs initialization file, specifying `markdown-ts-mode` and requiring `markdown-ts-mode-x` for extra functionalities. For users without `use-package`, instructions include using `autoload` and `add-to-list` to associate Markdown file extensions with the mode, followed by requiring `markdown-ts-mode-x`.

Testing Without Configuration Changes

The guide also offers a method to test markdown-ts-mode without altering a user's primary Emacs configuration. This involves saving the provided configuration snippets into a temporary `.el` file and launching Emacs with the `-Q --load` command-line options to load the temporary file in a bare Emacs session.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~20 min · 17 stories · Aug 27

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Emacs 31 includes an experimental markdown-ts-mode, which is not enabled by default. This guide provides instructions for users to activate and configure this feature-rich mode, which supports CommonMark and GitHub Flavored Markdown specifications.