Mark
Mark

Reputation: 8688

Auto completion keyword in Emacs

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

Answers (4)

Noufal Ibrahim
Noufal Ibrahim

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

Asher L.
Asher L.

Reputation: 1297

You can autocomplete with M-/. There are also other autocomplete packages available.

Upvotes: 5

mkcs
mkcs

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

Leif Andersen
Leif Andersen

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

Related Questions