I have globally assigned C-c/
to ace-jump-mode but reftex-mode (a minor mode for citations used with AucTeX) overrides this key with some function I never use.
I tried local-unset-key
but it only unbinds keys from the current major mode's map.
How do I remove C-c/
from reftex-mode-map
without making changes to reftex.el?
You can redefine function keys and mouse events in the same way; just type the function key or click the mouse when it's time to specify the key to rebind. redefines C-x 4 $ to run the (fictitious) command spell-other-window.
"RET" is the Return key while emacs runs in a terminal.
You can change an existing key map using define-key
. By passing nil
as the function to call, the key will become unbound. I guess that you should be able to do something like:
(define-key reftex-mode-map "\C-c/" nil)
Of course, you should do this in some kind of hook, for example:
(defun my-reftex-hook () (define-key reftex-mode-map "\C-c/" nil)) (add-hook 'reftex-mode-hook 'my-reftex-hook)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With