Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use emacs 29 beta right now and that is just not how it works. For example for elixir you just install elixir-ts-mode like any other package, answer yes to the prompt to install the elixir ts library, and you’re done.

Even that setup step will be unnecessary in emacs 30, when all this stuff will be shipped by default.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: