[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make all tree-sitter modes optional
From: |
Stefan Monnier |
Subject: |
Re: Make all tree-sitter modes optional |
Date: |
Wed, 18 Jan 2023 07:36:10 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> > IF we do that, it’d be better to instruct users to use
>> > major-mode-remap-alist, since it’s easier to understand and use IMO.
>>
>> Sure. This way we also avoid duplicating the file name regexp.
>
> The purpose of major-mode-remap-alist doesn't fit such use, so this
> proposal is a no-go.
Maybe I missed something (I'm having trouble keeping up with
emacs-devel these days, sorry), but I don't see why you think so.
It seems perfectly appropriate (and indeed fits the original goal) for
`Commentary:` to say something like:
;; If you want to use this mode by default, you can add the following
to your init file:
;;
;; (add-to-list 'major-mode-remap-alist '(ruby-mode . ruby-ts-mode))
-- Stefan
- Re: Make all tree-sitter modes optional, (continued)
- Re: Make all tree-sitter modes optional, Dmitry Gutov, 2023/01/17
- Re: Make all tree-sitter modes optional, Eli Zaretskii, 2023/01/17
- Re: Make all tree-sitter modes optional, Dmitry Gutov, 2023/01/17
- Re: Make all tree-sitter modes optional, Yuan Fu, 2023/01/17
- Re: Make all tree-sitter modes optional, Dmitry Gutov, 2023/01/17
- Re: Make all tree-sitter modes optional, Eli Zaretskii, 2023/01/17
- Re: Make all tree-sitter modes optional, Dmitry Gutov, 2023/01/17
- Re: Make all tree-sitter modes optional, Eli Zaretskii, 2023/01/18
- Re: Make all tree-sitter modes optional, Dmitry Gutov, 2023/01/18
- Re: Make all tree-sitter modes optional, Eli Zaretskii, 2023/01/18
- Re: Make all tree-sitter modes optional,
Stefan Monnier <=
- treesit-forward-sexp (was: Make all tree-sitter modes optional), Juri Linkov, 2023/01/17
- Re: treesit-forward-sexp (was: Make all tree-sitter modes optional), Theodor Thornhill, 2023/01/17
- Re: treesit-forward-sexp, Juri Linkov, 2023/01/17
- Re: treesit-forward-sexp (was: Make all tree-sitter modes optional), Dmitry Gutov, 2023/01/17
- Re: treesit-forward-sexp (was: Make all tree-sitter modes optional), Eli Zaretskii, 2023/01/17
Re: Make all tree-sitter modes optional, Po Lu, 2023/01/15
Re: Make all tree-sitter modes optional, Juri Linkov, 2023/01/17