On Wed, 2024-03-06 at 09:30 +0000, Philip Kaludercic wrote: > hw 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.