How can I unbind C-tab from jedi:complete?

亡梦爱人 提交于 2019-12-10 19:04:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!