generalize notmuch/ivy-compose to notmuch/compose (completing-read)

This commit is contained in:
Max Nickel 2019-10-26 14:02:56 -04:00
parent e279409bbd
commit a4050a153d

View file

@ -87,12 +87,13 @@
(notmuch-tree-next-message))
;;;###autoload
(defun +notmuch/ivy-compose ()
(defun +notmuch/compose ()
"Compose new mail"
(interactive)
(ivy-read "From: "
(notmuch-user-emails)
:action (lambda (selection) (notmuch-mua-mail nil nil (list (cons 'From selection))))))
(notmuch-mua-mail
nil
nil
(list (cons 'From (completing-read "From: " (notmuch-user-emails))))))
;;;###autoload
(defun +notmuch/open-message-with-mail-app-notmuch-tree ()