Re: [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell

Subject: Re: [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell

Date: Mon, 09 Nov 2015 14:59:21 +0000

To: Michal Sojka, notmuch@notmuchmail.org

Cc:

From: Mark Walters


This looks good to me +1.

Mark

On Tue, 03 Nov 2015, Michal Sojka <sojkam1@fel.cvut.cz> wrote:
> Flyspell mode uses a special setting for message-mode to not
> spell-check message headers except Subject. Apply this setting also to
> notmuch-message-mode.
> ---
>  emacs/notmuch-mua.el | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index fd98ea4..466edd7 100644
> --- a/emacs/notmuch-mua.el
> +++ b/emacs/notmuch-mua.el
> @@ -273,6 +273,8 @@ Note that these functions use `mail-citation-hook' if that is non-nil."
>    (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)
>  
> -- 
> 2.5.3
>
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> https://notmuchmail.org/mailman/listinfo/notmuch

Thread: