From: Alexander Botero-Lowry <alex.boterolowry@gmail.com>
To: Keith Packard <keithp@keithp.com>, notmuch@notmuchmail.org
Subject: Re: [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap
Date: Wed, 18 Nov 2009 00:52:34 -0800 [thread overview]
Message-ID: <867hto2p0t.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <1258532999-9316-1-git-send-email-keithp@keithp.com>
On Wed, 18 Nov 2009 00:29:59 -0800, Keith Packard <keithp@keithp.com> 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
next prev parent reply other threads:[~2009-11-18 8:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-18 8:29 [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap Keith Packard
2009-11-18 8:52 ` Alexander Botero-Lowry [this message]
2009-11-18 23:05 ` Carl Worth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=867hto2p0t.fsf@fortitudo.i-did-not-set--mail-host-address--so-tickle-me \
--to=alex.boterolowry@gmail.com \
--cc=keithp@keithp.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).