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.

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.