有的时候需要在company弹窗激活的情况下回车,这时就要C-g
再RET
,不是很方便,我想把两步操作变成一步:
(defun moon/return-cancel-completion ()
"Cancel completion and return."
(interactive)
(call-interactively #'keyboard-quit)
(newline nil t))
(global-set-key (kbd "S-<return>") #'moon/return-cancel-completion)
然而使用的时候没有效果,这是为什么啊?