Answers:
相应地修改company-active-map
:
(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))
company-active-map
在明显加载公司之前未定义。加载公司后,您需要评估这些命令,例如使用with-eval-after-load
。我相应地更新了我的答案。
Symbol's value as variable is void: company-active-map
修改后为什么会得到为什么company-active-map
,如何避免这种情况?