5

When I write a long line while composing a mail in mu4e, the lines are truncated for viewing (toggle-truncate-lines), but as soon as I hit Enter fixed line breaks (column width seems to be 70 or something) are introduced.

How can I stop mu4e from introducing these line breaks?

itsjeyd
  • 14,666
  • 3
  • 59
  • 87
bobo
  • 93
  • 5

2 Answers2

6

This will suffice in emacs nowadays:

(add-hook 'mu4e-compose-mode-hook 'turn-off-auto-fill)
ctietze
  • 215
  • 2
  • 11
  • 4
    I like to combine this with (add-hook 'mu4e-compose-mode-hook 'visual-line-mode) to have 'soft' line wrapping without actual newlines, but ensuting that the text stays inside my frame. – AstroFloyd May 20 '19 at 16:47
5

You can turn off auto-fill-mode in the mu4e message buffer. You can do so automatically by adding a function to the mu4e-compose-mode-hook:

(defun no-auto-fill ()
  "Turn off auto-fill-mode."
  (auto-fill-mode -1))

(add-hook 'mu4e-compose-mode-hook #'no-auto-fill)
Dan
  • 32,980
  • 7
  • 102
  • 169