emacs-devel
[Top][All Lists]
Advanced

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

Re: Turning on/off tree-sitter modes


From: Eli Zaretskii
Subject: Re: Turning on/off tree-sitter modes
Date: Sun, 24 Nov 2024 20:56:37 +0200

> From: Juri Linkov <juri@linkov.net>
> Cc: dmitry@gutov.dev,  johan.myreen@gmail.com,  emacs-devel@gnu.org
> Date: Sun, 24 Nov 2024 19:29:44 +0200
> 
> > Using alists or lists for customization requires that users understand
> > the basics of lists in Emacs, and have good command of the relevant
> > primitives.  As the experience of default-frame-alist suggests, that
> > is not a trivial thing to master (IMO, default-frame-alist survives
> > only because most users don't customize it directly, but via
> > higher-level APIs like set-frame-font etc.).
> >
> > Undoing the preferences is also not easy when lists/alists are used,
> > because there could be more than one element in the list, and it's
> > easy to forget to remove all of them.
> 
> The Custom UI helps to avoid such problems with the buttons
> to add/remove list elements like

We should also think about customizations directly in init files, not
via Custom.

>   major-mode-remap-alist:
>   INS DEL Key: js-mode
>           Value: js-ts-mode
>   INS DEL Key: ruby-mode
>           Value: ruby-ts-mode

In addition, I personally find this UI quite perplexing, and kinda
doubt users who use it will understand what "Key" and "value" mean in
this case.



reply via email to

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