Hello to all, As some of you probably did, i jumped on the treesitter train with emacs 29.1.

I replaced my major modes by their ts counterparts, and gave it a try. For the keywords colors, it was mostly fine, and at first I only checked that and was content with it.

Things went a bit sour when I starting writing code, in particular the indent-rules. I have used mainly the following so far :

  • cmake-ts-mode
  • c+±ts-mode
  • yaml-ts-mode

Over the past two weeks there has not been a work day where I did not have to complete or “fix” indentation rules to my liking.

On the one hand it is much easier than before to tweak things, where either there was a customizable variable, either you were screwed. Now you can add rich rules, kind of easily

On the other hand, the out of the box experience was much worse, barely usable indentation especially for the c++ mode which, despites its 4 presets, lacks the many quick toggles from cc-mode.

I do commend maintainers though for their amazing core implementation, the api + utilities make debugging tree sitter rules a breeze.

How has your treesitter Journey been so far ?

  • FrozenOnPluto@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    As its brand new, I’m ignoring it for now; when I don’t have another more mature (“the devil you know”) mode, I’ll use the *-ts-mode and twiddle with it, but otherwise I’m mostly sticking to the current ones. One of those bleeding edge things - let those on the edge do the bleeding ;)