From 852b5932ff546a2e445c12e24fd9261e7146f0be Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Mon, 9 Nov 2015 14:59:21 +0000 Subject: [PATCH] Re: [PATCH] emacs: Make notmuch-message-mode play nicely with flyspell --- bf/1d1ccce4aa9ff7d4ece062902c24035a8cebaa | 99 +++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 bf/1d1ccce4aa9ff7d4ece062902c24035a8cebaa diff --git a/bf/1d1ccce4aa9ff7d4ece062902c24035a8cebaa b/bf/1d1ccce4aa9ff7d4ece062902c24035a8cebaa new file mode 100644 index 000000000..eac1abc18 --- /dev/null +++ b/bf/1d1ccce4aa9ff7d4ece062902c24035a8cebaa @@ -0,0 +1,99 @@ +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 DD8826DE1B00 + for ; Mon, 9 Nov 2015 06:59:27 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.183 +X-Spam-Level: +X-Spam-Status: No, score=0.183 tagged_above=-999 required=5 tests=[AWL=0.053, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, + RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] + 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 NGYkTiFelWjH for ; + Mon, 9 Nov 2015 06:59:25 -0800 (PST) +Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com + [74.125.82.42]) by arlo.cworth.org (Postfix) with ESMTPS id 87C8E6DE1552 for + ; Mon, 9 Nov 2015 06:59:25 -0800 (PST) +Received: by wmec201 with SMTP id c201so73689999wme.1 + for ; Mon, 09 Nov 2015 06:59:23 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:subject:in-reply-to:references:user-agent:date:message-id + :mime-version:content-type; + bh=c62fWdxPmWswbPpAY3yWdIbPW745Wi1n6s+5qNjTZg8=; + b=W+rNLA+e0vitIGzN7PlpVEcPI3T86AIElrLHIjb1+Sh3HoB4kfE05RviEj+Gp4ZL1h + TBAOMBdpgS7AamlKqNN+MZOCyUzBXM7tHrkyJD1V6XKocHcZislcdwQCvE9r22p2RugC + zbOtkNXcu1FTQSFUd8f7pwKQGT9V5KsbIb0Y7mbt5Mmopb971riacgMPEMhV3AhwP1gN + Pw1+BYTjRyzGbek3faTbT62WeF5oTC+0h5AtS58uHeKkTmsYcRWg+LebvNEWCnNZ5mo3 + Xf6fg6P2J36rBC3v+XFngPOw8HJFxhNUKNjjrOTHL9qc7Crf+0HGvkpbmEawsVeTgWk7 + RzuQ== +X-Received: by 10.28.45.72 with SMTP id t69mr8444862wmt.32.1447081163728; + Mon, 09 Nov 2015 06:59:23 -0800 (PST) +Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) + by smtp.gmail.com with ESMTPSA id cr5sm15836272wjb.16.2015.11.09.06.59.22 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Mon, 09 Nov 2015 06:59:22 -0800 (PST) +From: Mark Walters +To: Michal Sojka , notmuch@notmuchmail.org +Subject: Re: [PATCH] emacs: Make notmuch-message-mode play nicely with + flyspell +In-Reply-To: <1446584532-27101-1-git-send-email-sojkam1@fel.cvut.cz> +References: <1446584532-27101-1-git-send-email-sojkam1@fel.cvut.cz> +User-Agent: Notmuch/0.18+519~ga09e253 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Mon, 09 Nov 2015 14:59:21 +0000 +Message-ID: <87y4e76wxi.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +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: Mon, 09 Nov 2015 14:59:28 -0000 + + +This looks good to me +1. + +Mark + +On Tue, 03 Nov 2015, Michal Sojka 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 -- 2.26.2