emacs-devel
[Top][All Lists]
Advanced

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

Re: An anonymous IRC user's opinion


From: Eli Zaretskii
Subject: Re: An anonymous IRC user's opinion
Date: Tue, 05 Nov 2024 21:53:22 +0200

> Date: Tue, 5 Nov 2024 21:40:42 +0200
> Cc: johan.myreen@gmail.com, emacs-devel@gnu.org
> From: Dmitry Gutov <dmitry@gutov.dev>
> 
> On 05/11/2024 19:28, Eli Zaretskii wrote:
> 
> >> Suppose the user customizes treesit-modes-enabled (the new option) to t.
> >>
> >> Would that have to enable the file associations for all treesit major
> >> modes right away, in the same Emacs session?
> > 
> > Yes, I think so.
> > 
> >> That would require having more data stored somewhere, which
> >> currently isn't. Some other registration hook for all ts modes to
> >> use.
> > 
> > I don't think I understand what data are you talking about.
> 
> Suppose we have this in css-mode.el:
> 
>    ;;;###autoload
>    (if (and (treesit-available-p)
>             treesit-modes-enabled)
>        (add-to-list 'auto-mode-alist '("\\.css\\'" . css-ts-mode)))
> 
> And treesit-mode-enabled is originally nil.
> 
> Then the user customizes it to t.
> 
> What does its setter do? For css-ts-mode and other modes.

It could turn the mode on in every buffer that visits a .css file.  Or
not.

Why do you ask?



reply via email to

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