emacs-devel
[Top][All Lists]
Advanced

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

Re: Turing on tree-sitter (was: Call for volunteers: add tree-sitter sup


From: Eli Zaretskii
Subject: Re: Turing on tree-sitter (was: Call for volunteers: add tree-sitter support to major modes)
Date: Mon, 10 Oct 2022 11:19:18 +0300

> From: Yuan Fu <casouri@gmail.com>
> Date: Sun, 9 Oct 2022 23:54:45 -0700
> Cc: Eli Zaretskii <eliz@gnu.org>,
>  philipk@posteo.net,
>  emacs-devel@gnu.org
> 
> >> Since tree-sitter support is per-language, I do think it makes sense
> >> for each mode to have its tree-sitter support turned on separately.
> >> But we could also have a global "turn on tree-sitter support in every
> >> mode that has it" option, which will turn this on for those modes
> >> which can be supported by tree-sitter, if the appropriate
> >> language-support library is installed.
> >> 
> >> Comments?
> > 
> > +1 for this, but also keep the per-modes customs.  Then we can eat the
> > cake and have it too.
> > 
> > Such a mechanism can be made later, I think?
> > 
> > Theo
> 
> +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?

Yes, we can do that as well.  Tristate variables are a legion in Emacs.



reply via email to

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