1

I would like to always trigger company suggests. When I use:

(global-set-key (kbd "<tab>") 'company-complete))

It breaks ivy's completion in the minibuffer. How can I prevent this? I would like to set the above key binding globally, even for the scratch buffer, but not to break the current completion used in the minibuffer.

Drew
  • 75,699
  • 9
  • 109
  • 225
WickedJargon
  • 418
  • 2
  • 14

1 Answers1

4

Try putting that binding into company-mode-map:

(define-key company-mode-map (kbd "<tab>") 'company-complete)

company-mode is not active in the minibuffer, so it shouldn't be affected.

Dmitry
  • 3,508
  • 15
  • 20