本文介绍了如何从jedi解除C-tab的绑定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
启用 jedi-mode
,绑定到 jedi:complete
。 如何解除绑定,以便我可以将其绑定回其他窗口
?
我尝试过:
-
(全局设置键(kbdC-`)'jedi:complete)
-
(global-set-key [C-tab] -window)
-
(global-unset-key(kbd< C-tab>))
-
(defcustom jedi:key-complete(kbdC-`)
命令的键盘jedi:complete' b $ b:group'jedi)
他们中没有一个让我获得理想的结果。 p>
解决方案
您可以使用:
(define-key jedi-mode-map(kbd< C-tab>)nil)
没有一个具有 global
的命令将会工作,因为次模式密钥绑定
优先于全局密钥绑定。
With jedi-mode
enabled, the 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.
解决方案
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 bindingshave priority over global key bindings.
这篇关于如何从jedi解除C-tab的绑定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!