[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: An anonymous IRC user's opinion
From: |
Juri Linkov |
Subject: |
Re: An anonymous IRC user's opinion |
Date: |
Tue, 19 Nov 2024 19:59:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) |
> +(defvar treesit--mode-associations
> + '((javascript-mode . js-ts-mode )
> + (c-or-c++-mode . c-or-c++-ts-mode)
> + (c-mode . c-ts-mode)
> + (c++-mode . c++-ts-mode)
> + ("\\.elixir\\'" . elixir-ts-mode)
> + ("\\.ex\\'" . elixir-ts-mode)
> + ("\\.go\\'" . go-ts-mode)
> + ;; And so on.
> + ;; Some info needed for interpreter-mode-alist as well.
> + ))
> +
> +(defcustom treesit-enable-modes nil
> + "Non-nil to enable tree-sitter modes during Emacs's startup."
> + :type 'boolean
> + :version "31.1"
> + :set #'treesit-enable-modes--set)
This could support a list to enable ts-modes selectively,
e.g. (setq treesit-enable-modes '(elixir-ts-mode js-ts-mode))
to not enable 'c-ts-mode', etc.
- Re: Turning on/off tree-sitter modes, (continued)
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/29
- Re: Turning on/off tree-sitter modes (was: An anonymous IRC user's opinion), Richard Stallman, 2024/11/25
- Re: Turning on/off tree-sitter modes (was: An anonymous IRC user's opinion), Eli Zaretskii, 2024/11/26
- Re: Turning on/off tree-sitter modes, Stefan Monnier, 2024/11/29
- Re: Turning on/off tree-sitter modes, Dmitry Gutov, 2024/11/29
- Re: Turning on/off tree-sitter modes, Eli Zaretskii, 2024/11/30
- Re: Turning on/off tree-sitter modes, Juri Linkov, 2024/11/30
- Re: An anonymous IRC user's opinion,
Juri Linkov <=
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/19
- Re: An anonymous IRC user's opinion, Philip Kaludercic, 2024/11/20
- Re: An anonymous IRC user's opinion, Juri Linkov, 2024/11/20
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/11/20
- Re: An anonymous IRC user's opinion, Dr. Arne Babenhauserheide, 2024/11/05
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/05
- Re: An anonymous IRC user's opinion, Dr. Arne Babenhauserheide, 2024/11/05
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/11/05
- Re: An anonymous IRC user's opinion, Philip Kaludercic, 2024/11/05
- Re: An anonymous IRC user's opinion, Dr. Arne Babenhauserheide, 2024/11/05