在 emacs 的 shell 模式下,当前退出 shell 模式的键绑定 ( 'comint-interrupt-subjob
) 是"\C-c \C-c"
,我想将其更改"\C-c"
为与普通 linux shell 一样 我试过了
(add-hook 'shell-mode-hook '(lambda ()
(local-set-key "\C-c" 'comint-interrupt-subjob)
))
但它没有用。可能我需要禁用分配给"\C-c"
. 我怎样才能做到这一点?