Variable: treesit-major-mode-remap-alist

treesit-major-mode-remap-alist is a variable defined in treesit.c.

Value

((yaml-mode . yaml-ts-mode) (tsx-mode . tsx-ts-mode)
 (typescript-mode . typescript-ts-mode)
 (conf-toml-mode . toml-ts-mode) (sh-mode . bash-ts-mode)
 (rust-mode . rust-ts-mode) (ruby-mode . ruby-ts-mode)
 (python-mode . python-ts-mode) (php-mode . php-ts-mode)
 (mhtml-mode . mhtml-ts-mode) (markdown-mode . markdown-ts-mode)
 (lua-mode . lua-ts-mode) (js-json-mode . json-ts-mode)
 (javascript-mode . js-ts-mode) (java-mode . java-ts-mode)
 (heex-mode . heex-ts-mode) (go-work-mode . go-work-ts-mode)
 (go-mod-mode . go-mod-ts-mode) (go-mode . go-ts-mode)
 (elixir-mode . elixir-ts-mode) (dockerfile-mode . dockerfile-ts-mode)
 (css-mode . css-ts-mode) (csharp-mode . csharp-ts-mode)
 (cmake-mode . cmake-ts-mode) (c-or-c++-mode . c-or-c++-ts-mode)
 (c++-mode . c++-ts-mode) (c-mode . c-ts-mode))

Documentation

Alist mapping file-specified modes to ts-modes.

The value should be an alist of (MODE . TS-MODE). This alist is used to modify the value of major-mode-remap-alist depending on customization of treesit-enabled-modes.

Probably introduced at or before Emacs version 31.1.

Source Code

// Defined in /usr/src/emacs/src/treesit.c
  DEFVAR_LISP ("treesit-major-mode-remap-alist",
	       Vtreesit_major_mode_remap_alist,
	       doc:
	       /* Alist mapping file-specified modes to ts-modes.

The value should be an alist of (MODE . TS-MODE).
This alist is used to modify the value of `major-mode-remap-alist'
depending on customization of `treesit-enabled-modes'.  */);