Search code examples
emacselispkey-bindings

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


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.


Solution

  • 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.