How to remap Company’s select next and select previous keys?

[From]: http://emacs.stackexchange.com/questions/2988/how-to-remap-companys-select-next-and-select-previous-keys

Modify company-active-map accordingly:

(with-eval-after-load 'company
  (define-key company-active-map (kbd "M-n") nil)
  (define-key company-active-map (kbd "M-p") nil)
  (define-key company-active-map (kbd "C-n") #'company-select-next)
  (define-key company-active-map (kbd "C-p") #'company-select-previous))
shareimprove this answer