Grant Limberg
Grant Limberg

Reputation: 21403

Vim style Omnicomplete for emacs?

I've found several code completion elisp packages for emacs that do code completion, but most bind to a key such as M-/ to toggle completion. Is there something similar to Vim's omnicomplete where you can set it to automatically pop up a list of autocompletion options where you can either navigate through them, or just keep typing.

See screenshot for example:

alt text

Upvotes: 7

Views: 2541

Answers (3)

jrockway
jrockway

Reputation: 42694

Can you? Sure. Reset a timer on post-command-hook. If it goes off (because you are sitting at your screen not typing), pop-up the thing.

It seems easier to tell your computer what to do (by pressing keys) rather than having it wait for your to stop typing for a while, however. Bind completion to something like the "menu key", and you won't even have to chord.

Upvotes: 1

Raja Selvaraj
Raja Selvaraj

Reputation: 7218

I think company mode would best fit your description. Have a look at it.

Upvotes: 10

Trey Jackson
Trey Jackson

Reputation: 74480

There are a number, all a little different:

They all have their drawbacks and advantages.

The emacs wiki has a page for all the completion packages.

Upvotes: 5

Related Questions