Set mu4e-compose-format-flowed to nil by default

Requested by Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> not to disturb
existing users.
This commit is contained in:
Christophe Troestler
2016-05-07 13:12:11 +02:00
parent af523cd05a
commit d063889e4c
2 changed files with 16 additions and 7 deletions

View File

@ -143,7 +143,7 @@ Also see `mu4e-context-policy'."
:safe 'symbolp
:group 'mu4e-compose))
(defcustom mu4e-compose-format-flowed t
(defcustom mu4e-compose-format-flowed nil
"Whether to compose messages to be sent as format=flowed (or
with long lines if `use-hard-newlines' is set to nil). The
variable `fill-flowed-encode-column' lets you customize the
@ -334,7 +334,7 @@ by blank lines. If `use-hard-newlines' is not enabled, this
simply executes `fill-paragraph'."
;; Inspired by https://www.emacswiki.org/emacs/UnfillParagraph
(interactive (progn (barf-if-buffer-read-only) '(t)))
(if use-hard-newlines
(if mu4e-compose-format-flowed
(let ((fill-column (point-max))
(use-hard-newlines nil)); rfill "across" hard newlines
(fill-paragraph nil region))
@ -393,7 +393,8 @@ simply executes `fill-paragraph'."
'(menu-item "Format=flowed" mu4e-toggle-use-hard-newlines
:button (:toggle . use-hard-newlines)
:help "Toggle format=flowed"
:visible (eq major-mode 'mu4e-compose-mode))
:visible (eq major-mode 'mu4e-compose-mode)
:enable mu4e-compose-format-flowed)
'sep)
;; setup the fcc-stuff, if needed