the-kenny / weechat.el

Chat via weechat's relay protocol in Emacs
177 stars 41 forks source link

Support company idle completion #58

Open aspiwack opened 8 years ago

aspiwack commented 8 years ago

It seems that company-mode doesn't automatically start completion in the input field of a chat buffer. (it would be useful, for instance, with company-math and company-emoji).

Launching M-x company-complete manually works. But the completion menu never open on its own (I start company with global-company-mode). So something in weechat.el seems to be blocking the automatic "idle completion" of company-mode.

I'm lacking understanding of either mode inner workings for further diagnostic.

the-kenny commented 7 years ago

I'm not using company-mode personally, so I'm not too familiar with how it works. Can you give me a short link or introduction on how to reproduce your issue?

Also, sorry for not coming back to you earlier.

talyz commented 4 years ago

company-mode has a few whitelisted commands it will run completion automatically after, such as self-insert-command and org-self-insert-command, but weechat-self-insert-command is not included. To solve it, add

(add-to-list 'company-begin-commands 'weechat-self-insert-command)

to your config.