[mew-int 2894] Re: mew-wrap-lines
Alan Bram
alan.bram at example.com
Thu Jul 22 06:59:09 JST 2010
Yes, that's helpful. Thank you!
However, I still have a similar problem with list items that are
marked with numbers, like
1) something here
2) another (long) thing here ...
On Jul 20, 2010, at 2:00 PM, Christophe TROESTLER wrote:
> On Mon, 28 Jun 2010 22:34:09 +0200, Christophe TROESTLER wrote:
>>
>> - For lines starting with a dash, like enumerations, mew-wrap-
>> lines uses the dash as a prefix to fold lines.
>> - When several items follow, this make it impossible to
>> distinguish them, unless one does not wrap the lines, which is not
>> fun.
>>
>> Of course, one may have a citation prefix like
>>
>> > - bla bla...
>>
>> Is there a way to tell mew to remove the dashes (and maybe "*")
>> from filling prefix? This would be a nice thing to have.
>
> Replying to myself, here is the trick I use:
>
> (defadvice mew-fill-match-adaptive-prefix
> (after mew-remove-itemize-chars)
> "Remove the symbols commonly used as indicators for itemize lists
> from
> the prefix used for filling messages."
> (message ad-return-value)
> (setq ad-return-value
> (replace-regexp-in-string "[-*$(Q#@(B]" " " ad-return-value)))
>
> (add-hook 'mew-init-hook
> (function
> (lambda ()
> (ad-activate 'mew-fill-match-adaptive-prefix))))
>
> Hope it may be pf help to somebody else...
>
> Best,
> C.
>
More information about the Mew-int
mailing list