mirror of
https://github.com/djcb/mu.git
synced 2024-06-29 07:51:04 +02:00
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:
parent
af523cd05a
commit
d063889e4c
|
@ -143,7 +143,7 @@ Also see `mu4e-context-policy'."
|
||||||
:safe 'symbolp
|
:safe 'symbolp
|
||||||
:group 'mu4e-compose))
|
: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
|
"Whether to compose messages to be sent as format=flowed (or
|
||||||
with long lines if `use-hard-newlines' is set to nil). The
|
with long lines if `use-hard-newlines' is set to nil). The
|
||||||
variable `fill-flowed-encode-column' lets you customize 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'."
|
simply executes `fill-paragraph'."
|
||||||
;; Inspired by https://www.emacswiki.org/emacs/UnfillParagraph
|
;; Inspired by https://www.emacswiki.org/emacs/UnfillParagraph
|
||||||
(interactive (progn (barf-if-buffer-read-only) '(t)))
|
(interactive (progn (barf-if-buffer-read-only) '(t)))
|
||||||
(if use-hard-newlines
|
(if mu4e-compose-format-flowed
|
||||||
(let ((fill-column (point-max))
|
(let ((fill-column (point-max))
|
||||||
(use-hard-newlines nil)); rfill "across" hard newlines
|
(use-hard-newlines nil)); rfill "across" hard newlines
|
||||||
(fill-paragraph nil region))
|
(fill-paragraph nil region))
|
||||||
|
@ -393,7 +393,8 @@ simply executes `fill-paragraph'."
|
||||||
'(menu-item "Format=flowed" mu4e-toggle-use-hard-newlines
|
'(menu-item "Format=flowed" mu4e-toggle-use-hard-newlines
|
||||||
:button (:toggle . use-hard-newlines)
|
:button (:toggle . use-hard-newlines)
|
||||||
:help "Toggle format=flowed"
|
:help "Toggle format=flowed"
|
||||||
:visible (eq major-mode 'mu4e-compose-mode))
|
:visible (eq major-mode 'mu4e-compose-mode)
|
||||||
|
:enable mu4e-compose-format-flowed)
|
||||||
'sep)
|
'sep)
|
||||||
|
|
||||||
;; setup the fcc-stuff, if needed
|
;; setup the fcc-stuff, if needed
|
||||||
|
|
|
@ -3841,15 +3841,23 @@ devices) and here's the RFC with all the details:
|
||||||
@url{http://www.ietf.org/rfc/rfc2646.txt}.
|
@url{http://www.ietf.org/rfc/rfc2646.txt}.
|
||||||
|
|
||||||
Since version 0.9.17, @t{mu4e} send emails with @t{format=flowed} by
|
Since version 0.9.17, @t{mu4e} send emails with @t{format=flowed} by
|
||||||
default. The transformation of your message into the proper format is
|
setting
|
||||||
|
|
||||||
|
@lisp
|
||||||
|
(setq mu4e-compose-format-flowed t)
|
||||||
|
@end lisp
|
||||||
|
|
||||||
|
in your Emacs init file (@file{~/.emacs} or @file{~/.emacs.d/init.el}).
|
||||||
|
The transformation of your message into the proper format is
|
||||||
done at the time of sending. In order to happen properly, you should
|
done at the time of sending. In order to happen properly, you should
|
||||||
write each paragraph of your message of as a long line (i.e. without
|
write each paragraph of your message of as a long line (i.e. without
|
||||||
carriage return). If you introduce unwanted newlines in your paragraph,
|
carriage return). If you introduce unwanted newlines in your paragraph,
|
||||||
use @kbd{M-q} to reformat it as a single line.
|
use @kbd{M-q} to reformat it as a single line.
|
||||||
|
|
||||||
If you want to send the message with long lines but without
|
If you want to send the message with paragraphs on single lines but
|
||||||
@t{format=flowed} (because, say, the receiver does not understand it as
|
without @t{format=flowed} (because, say, the receiver does not
|
||||||
it is the case for Google or Github), use @kbd{M-x use-hard-newlines} or
|
understand the latter as it is the case for Google or Github), use
|
||||||
|
@kbd{M-x use-hard-newlines} (to turn @code{use-hard-newlines} off) or
|
||||||
uncheck the box @t{format=flowed} in the @t{Text} menu when composing a
|
uncheck the box @t{format=flowed} in the @t{Text} menu when composing a
|
||||||
message.
|
message.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user