reddit / emacs

How can I setup company-mode to only trigger completions with TAB?

asimpleperson123 · 2022-05-30 09:42
I have recently decided to switch to emacs, and one of the features I wanted to have was autocomplete. I decided to use company mode, but I have a few problems with it out of the box. I don't want company mode to show a menu, instead I want to be able to use TAB and Shift-Tab to be able to cycle forwards and backwards through the completion results without having a menu appear.
bbenne10 · 2022-05-30 11:30
I use corfu (and never paid enough attention when I had company around in my setup) , so I'm not overly familiar with company but it looks like maybe you could modify `company-frontends` to remove any `tooltip-` frontends present in there, leaving any existing `preview-` frontend (or adding a custom one, if one doesn't exist?)
samsjj · 2022-05-30 14:05
By default — having company-mode enabled (see Initial Setup) — a tooltip with completion candidates is shown when a user types in a few characters. To initiate completion manually, use the command M-x company-complete. You could setup key bindings as shown here http://company-mode.github.io/manual/Getting-Started.html#Getting-Started
asimpleperson123 · 2022-05-30 16:11
Thanks, this helped.