From 00ec885eaaead670037a51756fe75b51b11eb502 Mon Sep 17 00:00:00 2001 From: Max Nickel Date: Wed, 23 Oct 2019 23:25:32 -0400 Subject: [PATCH] add command to select From email via ivy prior to composing --- modules/email/notmuch/autoload.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/email/notmuch/autoload.el b/modules/email/notmuch/autoload.el index 25a3f1e3b..6c273e526 100644 --- a/modules/email/notmuch/autoload.el +++ b/modules/email/notmuch/autoload.el @@ -86,6 +86,14 @@ (notmuch-tree-add-tag (list "+spam" "-inbox" "-unread")) (notmuch-tree-next-message)) +;;;###autoload +(defun +notmuch/ivy-compose () + "Compose new mail" + (interactive) + (ivy-read "From: " + (notmuch-user-emails) + :action (lambda (selection) (notmuch-mua-mail nil nil (list (cons 'From selection)))))) + ;;;###autoload (defun +notmuch/open-message-with-mail-app-notmuch-tree () (interactive)