1 Return-Path: <alex.boterolowry@gmail.com>
\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 8B22B431FBC
\r
6 for <notmuch@notmuchmail.org>; Wed, 18 Nov 2009 00:52:40 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id MWMHpYN7UOv3 for <notmuch@notmuchmail.org>;
\r
11 Wed, 18 Nov 2009 00:52:39 -0800 (PST)
\r
12 Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com
\r
14 by olra.theworths.org (Postfix) with ESMTP id 9A6B9431FAE
\r
15 for <notmuch@notmuchmail.org>; Wed, 18 Nov 2009 00:52:38 -0800 (PST)
\r
16 Received: by ywh3 with SMTP id 3so965069ywh.22
\r
17 for <notmuch@notmuchmail.org>; Wed, 18 Nov 2009 00:52:38 -0800 (PST)
\r
18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
19 h=domainkey-signature:received:received:received:from:to:subject
\r
20 :in-reply-to:references:date:message-id:mime-version:content-type;
\r
21 bh=PWRKB1lFxfwuMdaDZrKVnPeqezy1hztkiBoWMBjSnkI=;
\r
22 b=XGw7CAOTwT7b59grUOary3IwxbMjY6hgY2u8Tp7KDBWqqujXeq7Sv+RygOpRqg+6o3
\r
23 P5GUtrez9tDDqKeNRyqd24Ysz8NRqus4bm5/3Av3hK9wPptTVDTHdWLMe9i6CSFTnS+X
\r
24 +/doJBdg8fGiqrOAQ91J82qIRTuf6ahf6Cco0=
\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
26 h=from:to:subject:in-reply-to:references:date:message-id:mime-version
\r
28 b=tYsfCK02F6v/9WfgHdVgre9ASITCbNl3wntuuC+peCsiFpZo5Zhd/b6Zn2uWsC4F4u
\r
29 Zdg0euFRg6kWdBYvF4ZpdWKNvhbjFbSCiZ/jTRTed1jdvjNl0SnQ+PRO0eUatQCjcGDI
\r
30 UUMVy2kBoutsYk0VjUWUile41edPHbMXjaxqk=
\r
31 Received: by 10.91.144.16 with SMTP id w16mr1802322agn.21.1258534356431;
\r
32 Wed, 18 Nov 2009 00:52:36 -0800 (PST)
\r
33 Received: from fortitudo (70-36-144-85.dsl.dynamic.sonic.net [70.36.144.85])
\r
34 by mx.google.com with ESMTPS id 7sm382759yxg.68.2009.11.18.00.52.35
\r
35 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
36 Wed, 18 Nov 2009 00:52:36 -0800 (PST)
\r
37 Received: from alexbl (uid 1001) (envelope-from
\r
38 alexbl@fortitudo.i-did-not-set--mail-host-address--so-tickle-me)
\r
39 id 72c1 by fortitudo (DragonFly Mail Agent)
\r
40 Wed, 18 Nov 2009 00:52:34 -0800
\r
41 From: Alexander Botero-Lowry <alex.boterolowry@gmail.com>
\r
42 To: Keith Packard <keithp@keithp.com>, notmuch@notmuchmail.org
\r
43 In-Reply-To: <1258532999-9316-1-git-send-email-keithp@keithp.com>
\r
44 References: <1258532999-9316-1-git-send-email-keithp@keithp.com>
\r
45 Date: Wed, 18 Nov 2009 00:52:34 -0800
\r
47 <867hto2p0t.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me>
\r
49 Content-Type: text/plain; charset=us-ascii
\r
50 Subject: Re: [notmuch] [PATCH] Create a default notmuch-show-hook that
\r
51 highlights URLs and uses word-wrap
\r
52 X-BeenThere: notmuch@notmuchmail.org
\r
53 X-Mailman-Version: 2.1.12
\r
55 List-Id: "Use and development of the notmuch mail system."
\r
56 <notmuch.notmuchmail.org>
\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
60 List-Post: <mailto:notmuch@notmuchmail.org>
\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
64 X-List-Received-Date: Wed, 18 Nov 2009 08:52:40 -0000
\r
66 On Wed, 18 Nov 2009 00:29:59 -0800, Keith Packard <keithp@keithp.com> wrote:
\r
67 > I created the notmuch-show-hook precisely so I could add these two
\r
68 > options, but I suspect most people will want them, so I just made them
\r
69 > the default. If you don't want them, you can use remove-hook to get
\r
72 Yes, hooks should be added for search as well. :)
\r
74 > +; Make show mode a bit prettier, highlighting URLs and using word wrap
\r
76 > +(defun notmuch-show-pretty-hook ()
\r
77 > + (goto-address-mode 1)
\r
78 > + (visual-line-mode))
\r
80 visual-line-mode turns out to make subject look pretty ugly if there is a
\r
81 continuation. It doesn't do much good for the citation headers
\r
82 either. We probably need to do our own intelligent wrapping rather then
\r
83 use visual-line-mode to make this actually look right.
\r
85 goto-address-mode is important though. :)
\r