c-mode

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

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? ...

Emacs comment-region in C mode

In GNU Emacs, is there a good way to change the comment-region command in C mode from /* This is a comment which extends */ /* over more than one line in C. */ to /* This is a comment which extends over more than one line in C. */ ? I have tried (setq comment-multi-line t) but this does not help. There is a section on multi-...

Emacs c-mode fill-paragraph with Doxygen Comments

Hello, I have a question that is very similar to http://stackoverflow.com/questions/71788/getting-emacs-fill-paragraph-to-play-nice-with-javadoc-like-comments, but I wasn't sure if I would get many answers in a year old thread. Anyhow, I have C code that has some Doxygen comments that look like the following: /** * Description * * ...

Turning on linum-mode when in python/c mode.

I want to turn on linum mode (M-x linum-mode) automatically with python and c mode. I add the following code in .emacs, but it doesn't seem to work. (defun my-c-mode-common-hook () (line-number-mode 1)) (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) (defun my-python-mode-common-hook () (line-number-mode 1)) (add-hook 'pytho...