问题
With jedi-mode
enabled, the C-tab is bound to jedi:complete
.
How can I unbind it so that I can then bind it back to other-window
?
I've tried:
(global-set-key (kbd "C-`") 'jedi:complete)
(global-set-key [C-tab] 'other-window)
(global-unset-key (kbd "<C-tab>"))
(defcustom jedi:key-complete (kbd "C-`") "Keybind for command `jedi:complete'." :group 'jedi)
None of them is getting me the desired results.
回答1:
You can use:
(define-key jedi-mode-map (kbd "<C-tab>") nil)
None of the commands with global
in them will work, since minor mode key bindings
have priority over global key bindings.
来源:https://stackoverflow.com/questions/21131372/how-can-i-unbind-c-tab-from-jedicomplete