Disabling secondary mode key bindings

I asked a question here and got good answers, but the problem turned out to be different from what I thought.

I am trying to assign a specific function to the "Cc" key in shell mode, but it seems like a minor mode called tabbar-mode has a prefix key assigned to "Cc" that overrides my settings for shell mode. How to disable tab assignment in tab mode?

I put them after (require 'tabbar) , but they did not work:

 (defvar tabbar-mode-map nil) (defvar tabbar-prefix-key nil) 
+4
source share
1 answer

(defvar) initializes only the variable if it does not matter. See Ch f defvar RET for details.

Use (setq) to change the value of an existing variable.

To prevent the use of the mode key map when searching for key bindings, you can remove it from the minor-mode-map-alist variable:

 (assq-delete-all 'tabbar-mode minor-mode-map-alist) 
+5
source

All Articles