Re: [PATCH] emacs: remap send-message and send-message-and-exit

2021-06-07 Thread Tomi Ollila
On Fri, Jun 04 2021, e...@edef.eu wrote: >> > (defvar notmuch-message-mode-map >> >(let ((map (make-sparse-keymap))) >> > -(define-key map (kbd "C-c C-c") #'notmuch-mua-send-and-exit) >> > -(define-key map (kbd "C-c C-s") #'notmuch-mua-send) >> > +(define-key map [remap message-se

Re: [PATCH] emacs: remap send-message and send-message-and-exit

2021-06-04 Thread edef
> > (defvar notmuch-message-mode-map > >(let ((map (make-sparse-keymap))) > > -(define-key map (kbd "C-c C-c") #'notmuch-mua-send-and-exit) > > -(define-key map (kbd "C-c C-s") #'notmuch-mua-send) > > +(define-key map [remap message-send-and-exit] > > 'notmuch-mua-send-and-exit) >

Re: [PATCH] emacs: remap send-message and send-message-and-exit

2021-06-02 Thread Tomi Ollila
On Tue, Jun 01 2021, e...@edef.eu wrote: > All three of C-c C-c, , > and 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

[PATCH] emacs: remap send-message and send-message-and-exit

2021-05-31 Thread edef
All three of C-c C-c, , and 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