elisp - Globally overriding emacs keybindings -


Is there a command to override a global keybind like it overrides the local settings of the main mode? The global-set-key is overridden by key mode binding, as explained here:

No, None (underlying) to set a key binding which override all other. How AMACS searches for keymaps from studies

You can set the overriding-terminal-local-map or overriding-local-map for a bracket in which you want to be binding, But which prevents any buffer / overlay / short-mode map from buffering your buffer, may disable too many amaxes.

The next field Emacs looks for a bond character property at the present point - which is probably not used everywhere, but it will in some way override your binding (unless you To define your property everywhere, do not make mistakes with character qualities, in fact icky).

The next place AMACS looks at variable emulation-mode-map-alists , which is probably your best bet, it was set up for packages for use in those cases , Where there are more than one mini-mode keymap that wants to make it juggle.

Create a global minor mode (see), keep your key binding in it, in your modest mode and keymap in emulation-mode-map-alists Add, and turn on your modest mode.

Your key binding will now be a priority at all others, before emulation-mode-map-alist is found in the list, or character properties, or overriding -local-map in ...

I believe it's best that you can hack, MACS source.

Comments