help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: how to use tree-sitter-langs package


From: hw
Subject: Re: how to use tree-sitter-langs package
Date: Fri, 08 Mar 2024 07:20:16 +0100
User-agent: Evolution 3.50.4 (3.50.4-1.fc39)

On Wed, 2024-03-06 at 09:30 +0000, Philip Kaludercic wrote:
> hw <hw@adminart.net> writes:
> 
> > Hi,
> > 
> > I installed the tree-sitter-langs package with emacs' package
> > installer.  I got a directory with a bunch of files in it.
> 
> What package is that?

It shows up in package-list-packages.  What else can I say?

> Emacs 29 comes with a few something-ts-modes pre-installed, and
> there are a few more on GNU and NonGNU ELPA.  The important thing is
> to install the grammar, using M-x treesit-install-language-grammar.

I made an entry to treesit-language-source-alist and thus managed to
install it for the language I was looking for.  But that probably
means that I'm not using the package.

This is probably not the right way to do it, and the package seems to
support a lot of languages.  And I don't like these makeshift setups
that never update and when you come back later you have to start over
trying to figure out what you did some months or years ago, like when
you want yet another language.  It's cruft right away.  Aren't
packages supposed to avoid such bad setups?

> > How do I use this package?  I'd like to have the syntax highlighting
> > for some of the languages the package supports.


Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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