Emacs: Difference between revisions
m Add a link to matrix room |
Inkpotmonkey (talk | contribs) Add note about improving the availability of up to date tree sitter grammars by installing both epkgs.treesit-grammars and epkgs.tree-sitter-langs |
||
Line 103: | Line 103: | ||
]) | ]) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
When using Emacs with tree-sitter support, it's recommended to install both <code>epkgs.tree-sitter-langs</code> and <code>epkgs.treesit-grammars</code>. While <code>treesit-grammars</code> handles the registration of grammars with Emacs's native tree-sitter interface, the actual grammar files will come from <code>tree-sitter-langs</code>. <code>tree-sitter-langs</code> being a MELPA package means it receives regular updates when new grammar versions are released, whereas the grammars in the tree-sitter-grammars package may lag behind in nixpkgs. The combination ensures you get both up-to-date grammars and proper integration with Emacs's built-in tree-sitter support. | |||
==== Automatic Package Management ==== | ==== Automatic Package Management ==== |