[mew-int 3131] Re: visual-line-mode in message buffers
Christophe TROESTLER
Christophe.Troestler at example.com
Sat Jan 26 05:41:35 JST 2013
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.
More information about the Mew-int
mailing list