Emacs: a peek under Imenu’s hood

I promised myself to write a Tree-sitter major mode for F#. I’ve been told that it should not be such an insurmountable endeavour, but given that I start from the scratch, along the journey I will need to learn a bunch of new topics from the ground up. Nice, that’s why we use Emacs, right? For each of those themes, I will publish a little blog post to share the lesson learnt. Today it’s the…