1 Return-Path: <dme@dme.org>
\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 olra.theworths.org (Postfix) with ESMTP id 5C64C40DBC8
\r
6 for <notmuch@notmuchmail.org>; Mon, 15 Nov 2010 05:51:00 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id fOIwaNxAF+sV for <notmuch@notmuchmail.org>;
\r
16 Mon, 15 Nov 2010 05:50:49 -0800 (PST)
\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com
\r
18 [74.125.82.45]) by olra.theworths.org (Postfix) with ESMTP id 474F540DBDA for
\r
19 <notmuch@notmuchmail.org>; Mon, 15 Nov 2010 05:50:42 -0800 (PST)
\r
20 Received: by wwb31 with SMTP id 31so2594981wwb.2
\r
21 for <notmuch@notmuchmail.org>; Mon, 15 Nov 2010 05:50:41 -0800 (PST)
\r
22 Received: by 10.227.153.21 with SMTP id i21mr6138428wbw.26.1289829041048;
\r
23 Mon, 15 Nov 2010 05:50:41 -0800 (PST)
\r
24 Received: from ut.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com
\r
26 by mx.google.com with ESMTPS id f14sm5070297wbe.8.2010.11.15.05.50.34
\r
27 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
28 Mon, 15 Nov 2010 05:50:38 -0800 (PST)
\r
29 Received: by ut.hh.sledj.net (Postfix, from userid 1000)
\r
30 id DA1DB59405B; Mon, 15 Nov 2010 13:48:18 +0000 (GMT)
\r
31 From: David Edmondson <dme@dme.org>
\r
32 To: notmuch@notmuchmail.org
\r
33 Subject: [PATCH 2/2] emacs: notmuch-show-mode should force less behaviour.
\r
34 Date: Mon, 15 Nov 2010 13:48:15 +0000
\r
35 Message-Id: <1289828895-7594-2-git-send-email-dme@dme.org>
\r
36 X-Mailer: git-send-email 1.7.2.3
\r
37 In-Reply-To: <87wroeya0o.fsf@ut.hh.sledj.net>
\r
38 References: <87wroeya0o.fsf@ut.hh.sledj.net>
\r
39 X-BeenThere: notmuch@notmuchmail.org
\r
40 X-Mailman-Version: 2.1.13
\r
42 List-Id: "Use and development of the notmuch mail system."
\r
43 <notmuch.notmuchmail.org>
\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
45 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
47 List-Post: <mailto:notmuch@notmuchmail.org>
\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
51 X-List-Received-Date: Mon, 15 Nov 2010 13:51:00 -0000
\r
53 Move the enabling of `goto-address-mode' and `visual-line-mode' to
\r
54 `notmuch-show-hook' in order that a user may choose to not use them.
\r
56 emacs/notmuch-show.el | 15 ++++++++-------
\r
57 1 files changed, 8 insertions(+), 7 deletions(-)
\r
59 diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
\r
60 index 002c2fd..c9d086c 100644
\r
61 --- a/emacs/notmuch-show.el
\r
62 +++ b/emacs/notmuch-show.el
\r
63 @@ -69,7 +69,14 @@ any given message."
\r
64 "A list of functions called to decorate the headers listed in
\r
65 `notmuch-message-headers'.")
\r
67 -(defcustom notmuch-show-hook nil
\r
68 +(defun notmuch-show-turn-on-goto-address-mode ()
\r
69 + (goto-address-mode t))
\r
71 +(defun notmuch-show-turn-on-visual-line-mode ()
\r
72 + (visual-line-mode t))
\r
74 +(defcustom notmuch-show-hook '(notmuch-show-turn-on-goto-address-mode
\r
75 + notmuch-show-turn-on-visual-line-mode)
\r
76 "Functions called after populating a `notmuch-show' buffer."
\r
79 @@ -648,12 +655,6 @@ function is used. "
\r
80 (notmuch-show-insert-forest
\r
81 (notmuch-query-get-threads basic-args))))
\r
83 - ;; Enable buttonisation of URLs and email addresses in the
\r
85 - (goto-address-mode t)
\r
86 - ;; Act on visual lines rather than logical lines.
\r
87 - (visual-line-mode t)
\r
89 (run-hooks 'notmuch-show-hook))
\r
91 ;; Move straight to the first open message
\r