开发者

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 comman开发者_JS百科d (semantic-ia-complete-tip)? Is this even possible?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜