Re: Manipulating keymaps

John Haman <[email protected]> Mon, 15 Jun 2026 17:24:48 -0400
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
Eli Zaretskii <[email protected]> writes:

>
>> So how can I define key bindings which override all built-in keymaps?
>
> You can't.  If there's a local key binding that gets in your way, you
> need to unbind or rebind it (in a mode hook, for example).

bind-key* and bind-keys* from the bind-key.el library (bundled with
emacs) can do this, if I understand correctly.

Signature
(bind-key* KEY-NAME COMMAND &optional PREDICATE)

Documentation
Similar to bind-key, but overrides any mode-specific bindings.



--
John T. Haman
Maryland, USA
Sent from my Gnus