From: Michal Sojka Date: Tue, 3 Nov 2015 21:02:12 +0000 (+0100) Subject: [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a6a20fe03c5ca5e86aa05f150f665ba186685ffb;p=notmuch-archives.git [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell --- diff --git a/e8/7f2a3b2e0bc89cb7ec0e094dda6d5f0b9e0f36 b/e8/7f2a3b2e0bc89cb7ec0e094dda6d5f0b9e0f36 new file mode 100644 index 000000000..e8728afb0 --- /dev/null +++ b/e8/7f2a3b2e0bc89cb7ec0e094dda6d5f0b9e0f36 @@ -0,0 +1,76 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 8739B6DE177D + for ; Tue, 3 Nov 2015 13:02:33 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -1.064 +X-Spam-Level: +X-Spam-Status: No, score=-1.064 tagged_above=-999 required=5 tests=[AWL=1.786, + RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.55] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id cYBCd7aRza5d for ; + Tue, 3 Nov 2015 13:02:27 -0800 (PST) +Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) + by arlo.cworth.org (Postfix) with ESMTP id BBB0C6DE0281 + for ; Tue, 3 Nov 2015 13:02:26 -0800 (PST) +Received: from localhost (unknown [192.168.200.7]) + by max.feld.cvut.cz (Postfix) with ESMTP id CE46519F465D + for ; Tue, 3 Nov 2015 22:02:25 +0100 (CET) +X-Virus-Scanned: IMAP STYX AMAVIS +Received: from max.feld.cvut.cz ([192.168.200.1]) + by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new, port 10044) + with ESMTP id aPByW6quzSLZ for ; + Tue, 3 Nov 2015 22:02:24 +0100 (CET) +Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) + by max.feld.cvut.cz (Postfix) with ESMTP id 41C5919F4677 + for ; Tue, 3 Nov 2015 22:02:23 +0100 (CET) +Received: from wsh by steelpick.2x.cz with local (Exim 4.86) + (envelope-from ) + id 1Ztiij-00073n-Ld; Tue, 03 Nov 2015 22:02:21 +0100 +From: Michal Sojka +To: notmuch@notmuchmail.org +Subject: [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell +Date: Tue, 3 Nov 2015 22:02:12 +0100 +Message-Id: <1446584532-27101-1-git-send-email-sojkam1@fel.cvut.cz> +X-Mailer: git-send-email 2.5.3 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 03 Nov 2015 21:02:33 -0000 + +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 +