How to use tree-sitter for syntax highlighting in Emacs 29+?

This page summarizes the projects mentioned and recommended in the original post on /r/emacs

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • GNU Emacs

    Mirror of GNU Emacs

  • So far I've been using tree-sitter.el with the tree-sitter-hl-mode for syntax highlighting. As far as I understand, Tree Sitter is now built-into Emacs 29 and above as treesit (https://github.com/emacs-mirror/emacs/blob/master/admin/notes/tree-sitter/starter-guide), which makes tree-sitter.el obsolete. There is also this package https://github.com/renzmann/treesit-auto which seems to handle the installation, mapping and activation of the language modes.

  • treesit-auto

    Automatic installation, usage, and fallback for tree-sitter major modes in Emacs 29

  • So far I've been using tree-sitter.el with the tree-sitter-hl-mode for syntax highlighting. As far as I understand, Tree Sitter is now built-into Emacs 29 and above as treesit (https://github.com/emacs-mirror/emacs/blob/master/admin/notes/tree-sitter/starter-guide), which makes tree-sitter.el obsolete. There is also this package https://github.com/renzmann/treesit-auto which seems to handle the installation, mapping and activation of the language modes.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • nvim-treesitter

    Nvim Treesitter configurations and abstraction layer

  • check out https://github.com/nvim-treesitter/nvim-treesitter

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts