Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / e8 / 7f2a3b2e0bc89cb7ec0e094dda6d5f0b9e0f36
1 Return-Path: <sojkam1@fel.cvut.cz>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id 8739B6DE177D\r
6  for <notmuch@notmuchmail.org>; Tue,  3 Nov 2015 13:02:33 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.064\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.064 tagged_above=-999 required=5 tests=[AWL=1.786,\r
12   RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.55] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id cYBCd7aRza5d for <notmuch@notmuchmail.org>;\r
16  Tue,  3 Nov 2015 13:02:27 -0800 (PST)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18  by arlo.cworth.org (Postfix) with ESMTP id BBB0C6DE0281\r
19  for <notmuch@notmuchmail.org>; Tue,  3 Nov 2015 13:02:26 -0800 (PST)\r
20 Received: from localhost (unknown [192.168.200.7])\r
21  by max.feld.cvut.cz (Postfix) with ESMTP id CE46519F465D\r
22  for <notmuch@notmuchmail.org>; Tue,  3 Nov 2015 22:02:25 +0100 (CET)\r
23 X-Virus-Scanned: IMAP STYX AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25  by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new, port 10044)\r
26  with ESMTP id aPByW6quzSLZ for <notmuch@notmuchmail.org>;\r
27  Tue,  3 Nov 2015 22:02:24 +0100 (CET)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29  by max.feld.cvut.cz (Postfix) with ESMTP id 41C5919F4677\r
30  for <notmuch@notmuchmail.org>; Tue,  3 Nov 2015 22:02:23 +0100 (CET)\r
31 Received: from wsh by steelpick.2x.cz with local (Exim 4.86)\r
32  (envelope-from <sojkam1@fel.cvut.cz>)\r
33  id 1Ztiij-00073n-Ld; Tue, 03 Nov 2015 22:02:21 +0100\r
34 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
35 To: notmuch@notmuchmail.org\r
36 Subject: [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell\r
37 Date: Tue,  3 Nov 2015 22:02:12 +0100\r
38 Message-Id: <1446584532-27101-1-git-send-email-sojkam1@fel.cvut.cz>\r
39 X-Mailer: git-send-email 2.5.3\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.20\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44  <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
46  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
51  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Tue, 03 Nov 2015 21:02:33 -0000\r
53 \r
54 Flyspell mode uses a special setting for message-mode to not\r
55 spell-check message headers except Subject. Apply this setting also to\r
56 notmuch-message-mode.\r
57 ---\r
58  emacs/notmuch-mua.el | 2 ++\r
59  1 file changed, 2 insertions(+)\r
60 \r
61 diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
62 index fd98ea4..466edd7 100644\r
63 --- a/emacs/notmuch-mua.el\r
64 +++ b/emacs/notmuch-mua.el\r
65 @@ -273,6 +273,8 @@ Note that these functions use `mail-citation-hook' if that is non-nil."\r
66    (when notmuch-address-command\r
67      (notmuch-address-setup)))\r
68  \r
69 +(put 'notmuch-message-mode 'flyspell-mode-predicate 'mail-mode-flyspell-verify)\r
70 +\r
71  (define-key notmuch-message-mode-map (kbd "C-c C-c") #'notmuch-mua-send-and-exit)\r
72  (define-key notmuch-message-mode-map (kbd "C-c C-s") #'notmuch-mua-send)\r
73  \r
74 -- \r
75 2.5.3\r
76 \r