]> git.cworth.org Git - notmuch/commit - emacs/notmuch-mua.el
emacs: remap send-message and send-message-and-exit
authoredef <edef@edef.eu>
Sun, 13 Jun 2021 08:23:58 +0000 (08:23 +0000)
committerDavid Bremner <david@tethera.net>
Sun, 27 Jun 2021 17:22:35 +0000 (14:22 -0300)
commitfb4b45062f8551eb35ff1c22faf5c0bc95249a57
tree785c0d51c9ac29231410ffc956633fcfbfd7c6bd
parent814abafc3e4280de115d4bc0ac01f8d026a0a7f9
emacs: remap send-message and send-message-and-exit

All three of C-c C-c, <menu-bar> <Message> <Send Message>,
and <tool-bar> <Send Message> are bound to message-send-and-exit by
message.el, but notmuch-mua.el only had an explicit override for the
keyboard binding. This mostly manifests as confusing Fcc behaviour for
GUI users.

Patching the bindings for specific keys is rather brittle, since it has
to be aware of every relevant binding. This change switches to instead
using a remap binding, which turns any binding for message-send or
message-send-and-exit into a binding for the corresponding notmuch-mua
command.
emacs/notmuch-mua.el