]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-mua.el
cli: let the user know which protocol is unknown or unsupported
[notmuch] / emacs / notmuch-mua.el
index 57465b205a60a7875a66fdbd39874ca56f2e376c..466edd7eb23cfca98b19401bd51bd42970f1163e 100644 (file)
@@ -269,7 +269,11 @@ Note that these functions use `mail-citation-hook' if that is non-nil."
   (set-buffer-modified-p nil))
 
 (define-derived-mode notmuch-message-mode message-mode "Message[Notmuch]"
-  "Notmuch message composition mode. Mostly like `message-mode'")
+  "Notmuch message composition mode. Mostly like `message-mode'"
+  (when notmuch-address-command
+    (notmuch-address-setup)))
+
+(put 'notmuch-message-mode 'flyspell-mode-predicate 'mail-mode-flyspell-verify)
 
 (define-key notmuch-message-mode-map (kbd "C-c C-c") #'notmuch-mua-send-and-exit)
 (define-key notmuch-message-mode-map (kbd "C-c C-s") #'notmuch-mua-send)