[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 12:10:11 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> It's possible, but I don't understand why we need to invent a mode
> just to use major-mode-remap-defaults/alist. That was just a means to
> an end, no?
>
> Why not consider cmake-ts-mode just a normal major mode, like any
> other FOO-mode?
That would work as well, yes, but then we need to make sure it "works"
even when there's no grammar installed. I assumed that it is currently
unusable without a grammar, but I just tried and it seems to work OK (no
worse than fundamental-mode, which is all we need). So yes, we could
simply setup `auto-mode-alist` unconditionally via `;;;###autoload`.
And users could still use `cmake-mode` (or any other alternative) by
configuring `major-mode-remap-alist`.
Stefan
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/12/01
- 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 <=
- 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, 2024/12/03
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/12/04
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/12/04