mirror of https://github.com/djcb/mu.git
mu4e: improve mu4e-fill-paragraph
Improve mu4e-fill-paragraph for some corner-cases where there is trailing whitespace. Patch by holtzermann17.
This commit is contained in:
parent
ae7f649a4a
commit
37f11d642f
|
@ -354,8 +354,10 @@ simply executes `fill-paragraph'."
|
|||
(interactive (progn (barf-if-buffer-read-only) '(t)))
|
||||
(if mu4e-compose-format-flowed
|
||||
(let ((fill-column (point-max))
|
||||
(use-hard-newlines nil)); rfill "across" hard newlines
|
||||
(use-hard-newlines nil)); rfill "across" hard newlines
|
||||
(delete-trailing-whitespace)
|
||||
(fill-paragraph nil region))
|
||||
(delete-trailing-whitespace)
|
||||
(fill-paragraph nil region)))
|
||||
|
||||
(defun mu4e-toggle-use-hard-newlines ()
|
||||
|
|
Loading…
Reference in New Issue