this post was submitted on 22 Nov 2023
0 points (50.0% liked)

Emacs

313 readers
3 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] FrozenOnPluto@alien.top 1 points 1 year ago (1 children)

Aside - is there any good docs about _using_ treesitter mode? Setting it up was covered in a few great notes and guides, and took only a couple minutes.

ex: python-mode has a keybinsd that shifts current line/region right or left a hop; super handy! I didnt' see any obvious keybind for that in python-ts-mode .. I expected to have a lot of like-for-like in the new mode, but I guess thats not quite right. Its not 'a new python mode', its 'treesit modes', so have to get used to presumably new keybinds for treesit-modes .. and maybe they're even consistent across languages (that'd be something!) .. alas, I didn't find out what that key was, so, sort of a shame.

Any handy list of keybinds that are super useful across the treesit modes?

[–] hvis@alien.top 1 points 1 year ago (1 children)

Have you tried to use the same binding? python-ts-mode should have the same default set as python-mode due of how python-ts-mode-map is defined.

To see all available bindings, type C-h f python-ts-mode RET. You're probably thinking of C-c < and C-c >.

[–] FrozenOnPluto@alien.top 1 points 11 months ago (1 children)

Many of the 'defaut' (in my head) bindings dont' work in python-ts-mode (such as C-c >), but perhaps my config is blowing something up. Hmm .. I'll dig in more, thanks!

[–] hvis@alien.top 1 points 11 months ago

These two bindings work for me. Does C-h f python-ts-mode RET show them in the list?