[PATCH] emacs: make message indentation width customisable (was: Re: configure indentation width instead?)

Gregor Zattler telegraph at gmx.net
Sun Oct 23 09:43:24 PDT 2011


Hi Michal, Felix, notmuch developers,
* Michal Sojka <sojkam1 at fel.cvut.cz> [16. Aug. 2011]:
> On Tue, 19 Jul 2011, Gregor Zattler wrote:
>> Felix introduces a boolean configuration variable in order to
>> disable/enable indentation.   Wouldn't it be more helpful and
>> powerful to customise the indentation width with "0" meaning no
>> indentation, "1" being the current behaviour, "2" meaning double
>> indentation, "3" threefold indentation ...  ?
> 
> +1
> 
> Sometimes I find indenting by one character too small to find the
> replied message in long threads.

I also need more indentation in order to not get lost in long
threads and displays are wide today.

I now altered Felix' patches from dis/enabling indentation to
making indentation customisable.  I actually have no clue of
elisp and the test suite, I really only altered his patches.

The actual patch makes message indentation customisable by
introducing a variable `notmuch-indent-messages-width' which
defaults to `1', which is the same as before.  Felix could set
this variable to `0' in order to disable indentation, I tested it
with a value of `4' for a clearer separation of messages in a
thread.  This patch works for me.

I also altered Felix test to use this new variable.  I don't know
how to run the test suite and therefore don't know if it really
tests zero indentation.

HTH and thanks for notmuch and notmuch-Emacs which perhaps helps
me to use Emacs as a MUA, Gregor


More information about the notmuch mailing list