I am using emacs 30.2 with c++ treesit mode enabled. I can jump to function end with C-M-e, how can I jump to function define under current cursor?
1 Answer
Try C-M-a.
One way to figure out these things is use a bit of guesswork. If you do C-h c C-M-e, it tells you that C-M-e is bound to treesit-end-of-defun. So a good guess is that the function you are looking for is called treesit-beginning-of-defun and then you can ask what the keybinding for that function is with C-h w treesit-beginning-of-defun. That tells me
It is bound to C-M-<home>, C-M-a and ESC C-<home>.