Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show function prototype in Emacs?

Tags:

c

emacs

etag

While in C-mode I can jump to a function using M-. on the function name....is there a way i can simply display the function prototype? (preferably as a tooltip or so) I often struggle to remember the exact order and types required by a given function.

like image 723
horseyguy Avatar asked Jul 30 '09 10:07

horseyguy


2 Answers

c-eldoc-mode is a mode that is not as heavyweight as CEDET that will do precisely what you want.

like image 113
Nathaniel Flath Avatar answered Sep 19 '22 18:09

Nathaniel Flath


CEDET (there are rumors that it is finally going to become part of Emacs starting with 23.2) is your friend. After installation, look up semantic-ia-show-summary.

like image 33
Laurynas Biveinis Avatar answered Sep 19 '22 18:09

Laurynas Biveinis