I've become accustomed to using C-x p
for switching to the previous window.
And, I recently had to start including a company-wide startup.el
file that defines the prefix C-x p-
. I don't use any of the C-x p-
shortcuts.
Is there a way that I can undefine the C-x p-
prefix after it's been defined?
(define-key THAT-MAP "\C-xp" nil)
.define-prefix-command
call being used to define this prefix key? It would be helpful if you could give an example of what the prefix-key is and how it is being defined. The description here shows the prefix key being bound to a keymap. So, you would simply need to unset that keybinding.(key-binding (kbd "C-x"))
will say something like(keymap Control-X-prefix)
. To makeC-x
the prefix for your own set of bindings, you would simply rebind the keyC-x
to your keymap.