[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
- Re: Turning on/off tree-sitter modes, (continued)
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/12/02
- Re: Turning on/off tree-sitter modes, Stefan Monnier, 2024/12/02
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/12/03
- Re: Turning on/off tree-sitter modes, Stefan Monnier, 2024/12/03
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/12/03
- Re: Turning on/off tree-sitter modes, Stefan Monnier, 2024/12/03
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/12/03
- Re: Turning on/off tree-sitter modes, Stefan Monnier, 2024/12/03
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/12/03
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/12/03
- Re: Turning on/off tree-sitter modes,
Stefan Monnier <=
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/12/04
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/12/04