emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turning on/off tree-sitter modes


From: Stefan Monnier
Subject: Re: Turning on/off tree-sitter modes
Date: Tue, 03 Dec 2024 21:14:36 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> Take for example rust-ts-mode, or dockerfile-ts-mode: the body of the major
> mode function is wrapped in
>
>   (when (treesit-ready-p 'dockerfile)
>      ...
>     )

Yeah, I see now that `cmake-ts-mode` does the same.

> If there are downsides, they would probably be limited to having the mm
> keymap enabled, or dockerfile-ts-mode-hook run, which could be good too -
> depending on what the user expects to happen.

No, I think using `FOO-ts-mode` is better than
`fundamental-mode` anyway, indeed.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]