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:
@ -355,7 +355,9 @@ simply executes `fill-paragraph'."
|
|||||||
(if mu4e-compose-format-flowed
|
(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
|
||||||
|
(delete-trailing-whitespace)
|
||||||
(fill-paragraph nil region))
|
(fill-paragraph nil region))
|
||||||
|
(delete-trailing-whitespace)
|
||||||
(fill-paragraph nil region)))
|
(fill-paragraph nil region)))
|
||||||
|
|
||||||
(defun mu4e-toggle-use-hard-newlines ()
|
(defun mu4e-toggle-use-hard-newlines ()
|
||||||
|
|||||||
Reference in New Issue
Block a user