[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Turing on tree-sitter
From: |
Eli Zaretskii |
Subject: |
Re: Turing on tree-sitter |
Date: |
Mon, 10 Oct 2022 11:22:48 +0300 |
> From: Philip Kaludercic <philipk@posteo.net>
> Cc: Theodor Thornhill <theo@thornhill.no>, Eli Zaretskii <eliz@gnu.org>,
> emacs-devel@gnu.org
> Date: Mon, 10 Oct 2022 07:26:55 +0000
>
> > +1 for this, but also add a third possible value to per-mode customs
> > that keeps tree-sitter always off for the mode. That way someone can
> > enable tree-sitter for all but that mode. Are there precedents for
> > such ternary variables? nil, t, and 'never?
>
> Is there a reason we can't use a minor mode? Something like
>
> (add-hook 'python-mode-hook #'treesit-mode)
>
> or a list
>
> (add-to-list 'treesit-modes 'python-mode)
>
> ?
We could, if a minor mode is justified. When this was previously
brought up, someone said the justification for a minor mode was too
weak in most cases. But maybe we should revisit that idea.
- Re: Call for volunteers: add tree-sitter support to major modes, (continued)
- Re: Call for volunteers: add tree-sitter support to major modes, Eli Zaretskii, 2022/10/09
- Re: Turing on tree-sitter (was: Call for volunteers: add tree-sitter support to major modes), Eli Zaretskii, 2022/10/10
- Re: Turing on tree-sitter (was: Call for volunteers: add tree-sitter support to major modes), Theodor Thornhill, 2022/10/10
- Re: Turing on tree-sitter (was: Call for volunteers: add tree-sitter support to major modes), Yuan Fu, 2022/10/10
- Re: Turing on tree-sitter, Philip Kaludercic, 2022/10/10
- Re: Turing on tree-sitter,
Eli Zaretskii <=
- Re: Turing on tree-sitter, Stefan Monnier, 2022/10/10
- Re: Turing on tree-sitter, Daniel Martín, 2022/10/10
- Re: Turing on tree-sitter, Eli Zaretskii, 2022/10/10
- Re: Turing on tree-sitter, Yuan Fu, 2022/10/10
- Re: Turing on tree-sitter, Philip Kaludercic, 2022/10/10
- Re: Turing on tree-sitter, Yuan Fu, 2022/10/10
- Re: Turing on tree-sitter, Theodor Thornhill, 2022/10/10
- Buliding with tree-sitter (Was: Turing on tree-sitter), Jostein Kjønigsen, 2022/10/10
- Re: Buliding with tree-sitter (Was: Turing on tree-sitter), Jostein Kjønigsen, 2022/10/10
- Re: Turing on tree-sitter, Daniel Martín, 2022/10/10