From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8B22B431FBC for ; Wed, 18 Nov 2009 00:52:40 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MWMHpYN7UOv3 for ; Wed, 18 Nov 2009 00:52:39 -0800 (PST) Received: from mail-yw0-f173.google.com (mail-yw0-f173.google.com [209.85.211.173]) by olra.theworths.org (Postfix) with ESMTP id 9A6B9431FAE for ; Wed, 18 Nov 2009 00:52:38 -0800 (PST) Received: by ywh3 with SMTP id 3so965069ywh.22 for ; Wed, 18 Nov 2009 00:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject :in-reply-to:references:date:message-id:mime-version:content-type; bh=PWRKB1lFxfwuMdaDZrKVnPeqezy1hztkiBoWMBjSnkI=; b=XGw7CAOTwT7b59grUOary3IwxbMjY6hgY2u8Tp7KDBWqqujXeq7Sv+RygOpRqg+6o3 P5GUtrez9tDDqKeNRyqd24Ysz8NRqus4bm5/3Av3hK9wPptTVDTHdWLMe9i6CSFTnS+X +/doJBdg8fGiqrOAQ91J82qIRTuf6ahf6Cco0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-type; b=tYsfCK02F6v/9WfgHdVgre9ASITCbNl3wntuuC+peCsiFpZo5Zhd/b6Zn2uWsC4F4u Zdg0euFRg6kWdBYvF4ZpdWKNvhbjFbSCiZ/jTRTed1jdvjNl0SnQ+PRO0eUatQCjcGDI UUMVy2kBoutsYk0VjUWUile41edPHbMXjaxqk= Received: by 10.91.144.16 with SMTP id w16mr1802322agn.21.1258534356431; Wed, 18 Nov 2009 00:52:36 -0800 (PST) Received: from fortitudo (70-36-144-85.dsl.dynamic.sonic.net [70.36.144.85]) by mx.google.com with ESMTPS id 7sm382759yxg.68.2009.11.18.00.52.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 00:52:36 -0800 (PST) Received: from alexbl (uid 1001) (envelope-from alexbl@fortitudo.i-did-not-set--mail-host-address--so-tickle-me) id 72c1 by fortitudo (DragonFly Mail Agent) Wed, 18 Nov 2009 00:52:34 -0800 From: Alexander Botero-Lowry To: Keith Packard , notmuch@notmuchmail.org In-Reply-To: <1258532999-9316-1-git-send-email-keithp@keithp.com> References: <1258532999-9316-1-git-send-email-keithp@keithp.com> Date: Wed, 18 Nov 2009 00:52:34 -0800 Message-ID: <867hto2p0t.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Wed, 18 Nov 2009 08:52:40 -0000 On Wed, 18 Nov 2009 00:29:59 -0800, Keith Packard wrote: > I created the notmuch-show-hook precisely so I could add these two > options, but I suspect most people will want them, so I just made them > the default. If you don't want them, you can use remove-hook to get > rid of this. > Yes, hooks should be added for search as well. :) > +; Make show mode a bit prettier, highlighting URLs and using word wrap > + > +(defun notmuch-show-pretty-hook () > + (goto-address-mode 1) > + (visual-line-mode)) > + visual-line-mode turns out to make subject look pretty ugly if there is a continuation. It doesn't do much good for the citation headers either. We probably need to do our own intelligent wrapping rather then use visual-line-mode to make this actually look right. goto-address-mode is important though. :) alex