this post was submitted on 22 Nov 2023
0 points (50.0% liked)
Emacs
310 readers
2 users here now
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
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
view the rest of the comments
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?
Have you tried to use the same binding?
python-ts-mode
should have the same default set aspython-mode
due of howpython-ts-mode-map
is defined.To see all available bindings, type
C-h f python-ts-mode RET
. You're probably thinking ofC-c <
andC-c >
.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!
These two bindings work for me. Does
C-h f python-ts-mode RET
show them in the list?