[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: An anonymous IRC user's opinion
From: |
Xiyue Deng |
Subject: |
Re: An anonymous IRC user's opinion |
Date: |
Wed, 09 Oct 2024 22:14:32 -0700 |
User-agent: |
Notmuch/0.38.3 (https://notmuchmail.org) Emacs/29.4 (x86_64-pc-linux-gnu) |
Eli Zaretskii <eliz@gnu.org> writes:
>> Date: Thu, 10 Oct 2024 00:25:40 +0300
>> Cc: emacs-devel@gnu.org
>> From: Dmitry Gutov <dmitry@gutov.dev>
>>
>> On 09/10/2024 16:13, Eli Zaretskii wrote:
>> > rust-ts-mode is part of
>> > Emacs, and could be turned on automatically when a Rust file is
>> > visited; we didn't do that because we are unsure whether users of an
>> > unbundled Rust mode will protest
>>
>> That seems unlikely: as long as the auto-mode-alist configuration for
>> rust-ts-mode is done early on in Emacs's startup, any installed 3rd
>> party package such as rust-mode would add its config later, and thus
>> have priority.
>
> I don't have objections to making Rust recognized automatically and
> activating rust-ts-mode, if people think this danger is low or
> non-existent, and if *.rs files are not commonly used for something
> completely unrelated (e.g., I see on my Windows system quite a few
> *.rs files that seem to be some kind of Windows data files).
>
One thing to be cautious is that all *-ts-modes require tree-sitter
syntax libraries to be available to use, which are not shipped with
Emacs.
One can follow the instructions on masteringemacs[1], or install
treesit-auto[2] to install tree-sitter syntax libraries, which are not a
lot of trouble but may still be more work than a new comer would expect.
[1] https://www.masteringemacs.org/article/how-to-get-started-tree-sitter
[2] https://github.com/renzmann/treesit-auto
--
Regards,
Xiyue Deng
- Re: An anonymous IRC user's opinion, (continued)
- Re: An anonymous IRC user's opinion, Richard Stallman, 2024/10/12
- Re: An anonymous IRC user's opinion, Emanuel Berg, 2024/10/10
- Re: An anonymous IRC user's opinion, Johan Myréen, 2024/10/09
- Re: An anonymous IRC user's opinion, Ship Mints, 2024/10/09
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/09
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/10/09
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/10
- Re: An anonymous IRC user's opinion,
Xiyue Deng <=
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/10
- Re: An anonymous IRC user's opinion, Xiyue Deng, 2024/10/10
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/10/11
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/12
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/10/12
- Re: An anonymous IRC user's opinion, Dr. Arne Babenhauserheide, 2024/10/12
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/13
- Re: An anonymous IRC user's opinion, Dr. Arne Babenhauserheide, 2024/10/13
- Re: An anonymous IRC user's opinion, Eli Zaretskii, 2024/10/13
- Re: An anonymous IRC user's opinion, Dmitry Gutov, 2024/10/13