4
customize syntax highlighting rules for certain keywords?
(communick.news)
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Is it easy to integrate with elpy?
Pretty much unrelated AFAIK. At least in the setup I have it does mean that various hooks you may have set up may have to be tweaked. e.g. I had things on
python-mode-hook
but now I have to usepython-ts-mode-hook
.For me it was
sudo apt install lib-tree-sitter-dev
)Some setups seem to make -ts-mode somehow aliased to -mode, and I don't know if that makes the hook issue automatically resolved (?). Apart from that,
treesit-auto
seemed to be a low-friction way to get a setup:My config:
Edit: and I can confirm that treesitter does fix your specific problem, unsurprisingly.
Amazing, I think it's available on nixos as well. I will take it for a spin.