[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Turning on/off tree-sitter modes
From: |
Eli Zaretskii |
Subject: |
Re: Turning on/off tree-sitter modes |
Date: |
Mon, 25 Nov 2024 14:09:25 +0200 |
> Date: Mon, 25 Nov 2024 02:44:52 +0200
> Cc: johan.myreen@gmail.com, emacs-devel@gnu.org
> From: Dmitry Gutov <dmitry@gutov.dev>
>
> On 24/11/2024 20:56, Eli Zaretskii wrote:
> >> major-mode-remap-alist:
> >> INS DEL Key: js-mode
> >> Value: js-ts-mode
> >> INS DEL Key: ruby-mode
> >> Value: ruby-ts-mode
> > In addition, I personally find this UI quite perplexing, and kinda
> > doubt users who use it will understand what "Key" and "value" mean in
> > this case.
>
> We could add more detailed annotations to those customization fields, so
> it could look more like this, for example:
>
> Major Mode Remap Alist:
> Repeat:
> INS DEL Cons-cell:
> Mode to map from: js-mode
> Function to call instead: js-ts-mode
I think this would be a big step in the right direction.
Bonus points for replacing "Repeat" and "Cons-cell" with something
more user-friendly, like "Set of remappings" and "Remap", for example.
- Re: Turning on/off tree-sitter modes, (continued)
- Re: Turning on/off tree-sitter modes, Stefan Monnier, 2024/11/24
- Commands that change user options? [was: Turning on/off tree-sitter modes], Drew Adams, 2024/11/24
- Re: Turning on/off tree-sitter modes, Stephen Berman, 2024/11/24
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/23
- Re: Turning on/off tree-sitter modes, Juri Linkov, 2024/11/24
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/24
- Re: Turning on/off tree-sitter modes, Juri Linkov, 2024/11/24
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/24
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/24
- Re: Turning on/off tree-sitter modes, Juri Linkov, 2024/11/25
- Re: Turning on/off tree-sitter modes,
Eli Zaretskii <=
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/25
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/25
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/26
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/26
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/26
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/26
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/26
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/26
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/26
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/26