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

Does this mean that every emacs language package would automatically make use of this once it is built in. Or will this rather enable the possibility to write/rewrite programming language modes so they make use of tree-sitter because they can assume it is available in the default emacs install from then on?


It needs to be explicitly used. As far as I'm aware it doesn't slot in behind an existing API and magically make things better.


Got it. Are there any beginner guides yet on how to write an emacs (language) package while making use of it?


Unknown if this qualifies as "beginner guide" but the in-tree document is titled "STARTER GUIDE ON WRITING MAJOR MODE WITH TREE-SITTER": https://git.savannah.gnu.org/cgit/emacs.git/tree/admin/notes...


I hindsight I should have left out the "beginner" part. Thanks ofr pointing me in the right direction, exactly what I was looking for.




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

Search: