Re: [PATCH] emacs: Add configurable wrapping width for notmuch-wash-wrap-long-lines

Subject: Re: [PATCH] emacs: Add configurable wrapping width for notmuch-wash-wrap-long-lines

Date: Wed, 18 Apr 2012 09:30:39 -0600

To: Daniel Schoepe

Cc: notmuch@notmuchmail.org

From: Adam Wolfe Gordon


Hi Daniel,

On Fri, Feb 17, 2012 at 11:34, Daniel Schoepe <daniel@schoepe.org> wrote:
> This introduces a variable to control after how many characters a line
> is wrapped by notmuch-wash-wrap-long-lines (still wrapping at the
> window width if it is lower).

I really like this idea, and I'm using this patch now. I've been
missing this mechanism in notmuch.

> +(defvar notmuch-wash-wrap-lines-length nil
> +  "Wrap line after at most this many characters.
> +
> +If this is nil, lines in messages will be wrapped to fit in the
> +current window. If this is a number, lines will be wrapped after
> +this many characters or at the window width (whichever one is
> +lower).")

This should probably be a defcustom, in the notmuch-show section.
Otherwise, LGTM.

-- Adam

Thread: