Reputation: 8688
for example when I am typing int main() it would be nice if I could just hit tab and get the list of keywords (auto completion) I want. How can I do this in Emacs?
Upvotes: 1
Views: 776
Reputation: 72855
Asher's answer with the list is probably the best but if you want something that gives you a drop down of possible (non semantic) completions which you can select, you can use auto complete mode.
Upvotes: 1
Reputation: 1297
You can autocomplete with M-/
. There are also other autocomplete packages available.
Upvotes: 5
Reputation: 83
You may use yasnippet. By writing 'main' and then TAB, you get
int main (int argc, char *argv[])
{
return 0;
}
(This is not really auto completion.)
Upvotes: 1
Reputation: 22342
You need CEDET, it contains many good tools that can be used to make EMACS have many features that you would see in a more modern IDE.
Upvotes: 3