Skip to content

Commit

Permalink
notmuch: handle send and exit
Browse files Browse the repository at this point in the history
This should fix issue #58 for notmuch.

Signed-off-by: Jeremy Compostella <jeremy.compostella@gmail.com>
  • Loading branch information
jeremy-compostella committed Aug 13, 2020
1 parent af53094 commit 1a56754
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion org-msg.el
Original file line number Diff line number Diff line change
Expand Up @@ -911,12 +911,16 @@ area."
(unless (org-msg-message-fetch-field "subject")
(org-msg-post-setup _args)))

(defalias 'org-msg-send-and-exit-gnus 'message-send-and-exit)
(defalias 'org-msg-send-and-exit-mu4e 'message-send-and-exit)
(defalias 'org-msg-send-and-exit-notmuch 'notmuch-mua-send-and-exit)

(defun org-msg-ctrl-c-ctrl-c ()
"Send message like `message-send-and-exit'.
If the current buffer is OrgMsg buffer and OrgMsg is enabled (see
`org-msg-toggle'), it calls `message-send-and-exit'."
(when (eq major-mode 'org-msg-edit-mode)
(message-send-and-exit)))
(org-msg-mua-call 'send-and-exit)))

(defun org-msg-tab ()
"Complete names or Org mode visibility cycle.
Expand Down

0 comments on commit 1a56754

Please sign in to comment.