* how to use tree-sitter-langs package
@ 2024-03-03 18:42 hw
2024-03-06 9:30 ` Philip Kaludercic
0 siblings, 1 reply; 3+ messages in thread
From: hw @ 2024-03-03 18:42 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
[-- Attachment #1: Type: text/plain, Size: 253 bytes --]
Hi,
I installed the tree-sitter-langs package with emacs' package
installer. I got a directory with a bunch of files in it.
How do I use this package? I'd like to have the syntax highlighting
for some of the languages the package supports.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 858 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to use tree-sitter-langs package
2024-03-03 18:42 how to use tree-sitter-langs package hw
@ 2024-03-06 9:30 ` Philip Kaludercic
2024-03-08 6:20 ` hw
0 siblings, 1 reply; 3+ messages in thread
From: Philip Kaludercic @ 2024-03-06 9:30 UTC (permalink / raw)
To: hw; +Cc: help-gnu-emacs@gnu.org
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? 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.
> How do I use this package? I'd like to have the syntax highlighting
> for some of the languages the package supports.
--
Philip Kaludercic on peregrine
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to use tree-sitter-langs package
2024-03-06 9:30 ` Philip Kaludercic
@ 2024-03-08 6:20 ` hw
0 siblings, 0 replies; 3+ messages in thread
From: hw @ 2024-03-08 6:20 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]
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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 858 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-08 6:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-03 18:42 how to use tree-sitter-langs package hw
2024-03-06 9:30 ` Philip Kaludercic
2024-03-08 6:20 ` hw
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.