]> git.eshelyaron.com Git - emacs.git/commit
Set treesit-primary-parser for c and elixir ts mode
authorYuan Fu <casouri@gmail.com>
Sat, 14 Sep 2024 07:46:05 +0000 (00:46 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sat, 14 Sep 2024 20:33:52 +0000 (22:33 +0200)
commitb673e65517e8d51c309c0bd1a3e5b70aefe43465
tree6a6a108c658e9583c4e0f64a67693ddff84fd83a
parent1d0a76d211dd9df50e8b14bcffb6c9fa37337996
Set treesit-primary-parser for c and elixir ts mode

For buffers with multiple parsers, it's important to set this variable
so font-lock invalidation works smoothly.

* lisp/progmodes/c-ts-mode.el (c-ts-mode): Set treesit-primary-parser.
* lisp/progmodes/elixir-ts-mode.el (elixir-ts-mode): Set
treesit-primary-parser.

(cherry picked from commit 3cad7cc8dc823b8b1dd66d7777a01778e1a4defe)
lisp/progmodes/c-ts-mode.el
lisp/progmodes/elixir-ts-mode.el