company-mode pops up suggestions, I want to use
C-p to select the next or the previous options, instead of
Having found the general answer on this site, I was happy to try it out, but it turns out that doesn't work for me. I suspect this is because I have Evil mode enabled.
When I'm in evil-insert-mode, pressing
C-h k C-n tells me:
C-n runs the command evil-next-line (found in evil-insert-state-map), which is an interactive compiled Lisp function in ‘evil-commands.el’. It is bound to C-n. (evil-next-line &optional COUNT) Move the cursor COUNT lines down.
Is there any way I can shadow this correctly in
For completeness, my configuration is:
(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))