add command to select From email via ivy prior to composing

This commit is contained in:
Max Nickel 2019-10-23 23:25:32 -04:00
parent d73ebf0815
commit 00ec885eaa

View file

@ -86,6 +86,14 @@
(notmuch-tree-add-tag (list "+spam" "-inbox" "-unread")) (notmuch-tree-add-tag (list "+spam" "-inbox" "-unread"))
(notmuch-tree-next-message)) (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 ;;;###autoload
(defun +notmuch/open-message-with-mail-app-notmuch-tree () (defun +notmuch/open-message-with-mail-app-notmuch-tree ()
(interactive) (interactive)