make emacs semantic auto complete tip "always on"

3.5k views Asked by At

I have just installed cedet (CVS version) and I am now playing with in emacs and my C++ source code.

Regarding the auto complete, I can invoke the tool tip and the menu from their semantic-ia-complete-* commands.

Does anyone know how I can make the auto complete tip appear automatically without my having to invoke a command (semantic-ia-complete-tip)? Is this even possible?

1

There are 1 answers

3
Laurynas Biveinis On BEST ANSWER

From CEDET website:

Automatically starting inline completion in idle time

M-x global-semantic-idle-completions-mode

This is a minor mode which runs semantic-complete-analyze-inline-idle during idle time. Instead of trying to complete the symbol immediately, it will just display the possible completions, and underline the current symbol the cursor is on.

In practice this means that the possible completions will appear whenever you stop typing and the cursor is under a symbol where completions are possible.

To use it, just put

(global-semantic-idle-completions-mode)

to your .emacs after loading the CEDET.