[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Define treesit-font-lock-level as buffer local
From: |
Eli Zaretskii |
Subject: |
Re: Define treesit-font-lock-level as buffer local |
Date: |
Sat, 09 Nov 2024 10:54:18 +0200 |
> From: Yuan Fu <casouri@gmail.com>
> Date: Sat, 9 Nov 2024 00:36:31 -0800
> Cc: Eli Zaretskii <eliz@gnu.org>,
> emacs-devel@gnu.org
>
> >> Also, we could support a value of that variable which is a list, like
> >> we do with font-lock-maximum-decoration. This will be more useful
> >> than making the variable buffer-local, since presumably your
> >> preferences are per-mode, not per-buffer.
> > Yes, this would be a better solution.
> >
> >> Yuan, WDYT?
> >>
>
> Perhaps even per-language, for multi-language modes. I think it’s a valid use
> case. IMO, specify the level by language is better than mode. For single
> language modes, using the language is equivalent to using the mode; for
> multi-language modes, using the language allows more flexibility.
Patches welcome.
- Define treesit-font-lock-level as buffer local, Vincenzo Pupillo, 2024/11/07
- Re: Define treesit-font-lock-level as buffer local, Eli Zaretskii, 2024/11/07
- Re: Define treesit-font-lock-level as buffer local, Vincenzo Pupillo, 2024/11/07
- Re: Define treesit-font-lock-level as buffer local, Yuan Fu, 2024/11/09
- Re: Define treesit-font-lock-level as buffer local,
Eli Zaretskii <=
- Re: Define treesit-font-lock-level as buffer local, Yuan Fu, 2024/11/10
- Re: Define treesit-font-lock-level as buffer local, Eli Zaretskii, 2024/11/23
- Tree-sitter central configuration variable, Yuan Fu, 2024/11/29
- Re: Tree-sitter central configuration variable, Eshel Yaron, 2024/11/29
- Re: Tree-sitter central configuration variable, Yuan Fu, 2024/11/29
- Re: Tree-sitter central configuration variable, Eli Zaretskii, 2024/11/29
- Re: Tree-sitter central configuration variable, Yuan Fu, 2024/11/29
- Re: Tree-sitter central configuration variable, Eli Zaretskii, 2024/11/29
- Re: Tree-sitter central configuration variable, Stefan Monnier, 2024/11/29
- Re: Tree-sitter central configuration variable, Ship Mints, 2024/11/29