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)) (notmuch-tree-next-message))
;;;###autoload ;;;###autoload
(defun +notmuch/ivy-compose () (defun +notmuch/compose ()
"Compose new mail" "Compose new mail"
(interactive) (interactive)
(ivy-read "From: " (notmuch-mua-mail
(notmuch-user-emails) nil
:action (lambda (selection) (notmuch-mua-mail nil nil (list (cons 'From selection)))))) nil
(list (cons 'From (completing-read "From: " (notmuch-user-emails))))))
;;;###autoload ;;;###autoload
(defun +notmuch/open-message-with-mail-app-notmuch-tree () (defun +notmuch/open-message-with-mail-app-notmuch-tree ()