4 ms·
Okay, that's a good thing! From the article: > Neither tree-sitter nor Emacs come installed with language grammars > ...it’ll only work if you don’t have an e
by audiodude 3y ago
Okay, that's a good thing! From the article:
> Neither tree-sitter nor Emacs come installed with language grammars
> ...it’ll only work if you don’t have an exceptional setup (so it won’t work well unless you have GCC and run some flavor of Linux.)
> Determining if a grammar is available is not intuitive nor obvious unless you use elisp
> Note that, just because you have installed a grammar, does not mean Emacs supports it. Someone still has to write the – admittedly, way easier – syntax and indentation logic and all that good stuff.
> Annoyingly, there’s no easy way to see if you’re using the normal or the TS-powered major mode
> If you use Customize, then you don’t have to do anything, but if you normally use setq, you’ll have to use customize-set-variable instead to ensure the setter is called properly.
> That sounds like a great idea until you realize that it is not possible to make one-size-fits all commands that do this. Believe me: I’ve tried.