[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unwrapping
On Tue, 12 Oct 2010 07:02:29 -0400, David Abrahams <dave@boostpro.com> wrote:
>
>
>
> Ooo! visual-line-mode is exactly what I've wanted all these years for
> reading emails! I have no clue how it works, but it seems not to mess
> up long lines of code embedded in a message full of prose.
>
> Thank you!
I guess I should clarify that my code snippet, in the end, uses
word-wrap and not visual-line-mode as I found that latter to screw
things up more than the former in that it doesn't actually wrap at
word boundaries, if I remember correctly. The comment in my code is
not quite right and you'll see that the visual-line-mode command has
been commented out.
> > --8<---------------cut here---------------start------------->8---
> > ;; use visual-line-mode for displaying message. This is a customization of some
> > ;; code posted by lloyd zusman on the wanderlust mailing list
> > (defun my-summary-redisplay-hook ()
> > (save-excursion
> > (save-restriction
> > (set-buffer wl-message-buffer)
> > (save-excursion
> > ;; (visual-line-mode t) ;; code for reformating the message buffer goes here
> > (setq word-wrap t)
> > )
> > )))
> > (add-hook 'wl-summary-redisplay-hook 'my-summary-redisplay-hook)
> > --8<---------------cut here---------------end--------------->8---
> >
> > HTH,
> > eric
> > [2 <text/plain; US-ASCII (7bit)>]
> > --
> > Eric S Fraga
> > GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D
>
>
> --
> Dave Abrahams
> BoostPro Computing
> http://www.boostpro.com
>
--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D