Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make emacs semantic auto complete tip "always on"

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?

like image 887
user193272 Avatar asked Dec 30 '25 14:12

user193272


1 Answers

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.

like image 66
Laurynas Biveinis Avatar answered Jan 02 '26 02:01

Laurynas Biveinis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!