all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* treesit-language-source-alist: Presets and/or custom variable?
@ 2023-01-18 11:50 Arash Esbati
  2023-01-18 12:52 ` Ruijie Yu via Emacs development discussions.
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Arash Esbati @ 2023-01-18 11:50 UTC (permalink / raw)
  To: emacs-devel

Hi all,

just for the fun of it, I eval'd:

(setq treesit-language-source-alist
      '((python . ("https://github.com/tree-sitter/tree-sitter-bash.git"))
        (markdown . ("https://github.com/ikatyang/tree-sitter-markdown.git"))
        (rust . ("https://github.com/tree-sitter/tree-sitter-rust.git"))
        (elisp . ("https://github.com/Wilfred/tree-sitter-elisp.git"))))

and did `M-x treesit-install-language-grammar RET LANG RET' four times
with languages above.  I'm on Win10, so Emacs built 4 .dll files and put
them under ~/.emacs.d/tree-sitter/ -- that went smooth.  In order to
make this more convenient for others, would it make sense to preset this
variable with parsers available from this site[1]?

Further, it seems to me that this is a user-settable variable, so I'd
suggest to make it customizable.

Best, Arash

Footnotes:
[1]  https://tree-sitter.github.io/tree-sitter/#available-parsers




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-01-20  4:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-18 11:50 treesit-language-source-alist: Presets and/or custom variable? Arash Esbati
2023-01-18 12:52 ` Ruijie Yu via Emacs development discussions.
2023-01-18 12:53 ` Eli Zaretskii
2023-01-18 13:43   ` Arash Esbati
2023-01-19 12:15 ` Pankaj Jangid
2023-01-19 15:17   ` Arash Esbati
2023-01-20  4:23     ` Pankaj Jangid

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.