[mew-int 3131] Re: visual-line-mode in message buffers
Christophe TROESTLER <[email protected]> Fri, 25 Jan 2013 21:41:35 +0100
| Newsgroups | gmane.mail.mew.general |
|---|---|
| Organization | Universite de Mons (http://math.umons.ac.be/anum/) |
| Message-ID | <20130125.214135.1096944758311506947.Christophe.Troestler@umons.ac.be> |
On Thu, 24 Jan 2013 17:15:37 +0100, maxigas wrote:
>
> is there a way to turn on visual-line-mode in the message buffer
> when reading / writing messages?
For writing, if you use visual-line-mode, then you should also use the
"flowed" format (C-c C-p C-f or use the menu). Add to your
~/.emacs.d/init.el
(defun my-mew-use-format-flowed-hook()
(if mew-use-format-flowed
(progn
(auto-fill-mode 0)
;; wrap at words but show arrows in fringe:
(set (make-local-variable 'visual-line-fringe-indicators)
'(left-curly-arrow right-curly-arrow))
(visual-line-mode 1)
)
(progn
(auto-fill-mode 1)
(visual-line-mode 0)
)))
(add-hook 'mew-draft-use-format-flowed-hooks 'my-mew-use-format-flowed-hook)
For reading, use "_" to switch line wrapping.
Best,
C.