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?
Asked
Active
Viewed 2,858 times
1 Answers
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'.

Trey Jackson
- 73,529
- 11
- 197
- 229
-
thanks! im not yet so proficient with the emacs help system, but ill work on it :) – horseyguy Aug 12 '09 at 21:08
-
7It'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. – Trey Jackson Aug 12 '09 at 23:12
-
This is really helpful, I just use `C-h b` and figured out how to mark a function in `Pyhon mode`. – Jia Gao Jan 16 '20 at 16:23