How to select (mark) the body of a C function in emacs?
Asked Answered
M

1

12

I used to remember a key combination in c-mode to select a C function (i mean select the text between start and end of function for copying/killing etc) but i've since forgotten it and can't seem to find it anywhere. Does anyone remember what this key combination is?

Mimi answered 12/8, 2009 at 20:44 Comment(0)
F
18

In Emacs 23, it appears to be bound to:

C-M-h           c-mark-function

FWIW, I found this by listing all the commands for the mode C-h b, and searching for 'mark'.

Fix answered 12/8, 2009 at 20:58 Comment(3)
thanks! im not yet so proficient with the emacs help system, but ill work on it :)Mimi
It's all a learning process, that's why I added how I got the answer - the whole give a man a fish or teach him how.Fix
This is really helpful, I just use C-h b and figured out how to mark a function in Pyhon mode.Minimize

© 2022 - 2024 — McMap. All rights reserved.