Un-stupidify org-mode filling

This commit is contained in:
Case Duckworth 2021-10-21 19:01:00 -05:00
parent 0e4ccb882c
commit f91fb9f3d0
1 changed files with 3 additions and 6 deletions

View File

@ -2250,12 +2250,9 @@ browser defined in `browse-url-secondary-browser-function'."
(:local-hook before-save-hook
(defun org/before-save@prettify-buffer ()
(run-with-idle-timer 1 nil
(lambda ()
(with-temp-message "Filling..."
(save-mark-and-excursion
(mark-whole-buffer)
(org-fill-paragraph nil t)))))
(save-mark-and-excursion
(mark-whole-buffer)
(org-fill-paragraph nil t))
(acdw-org/fix-blank-lines t)
(org-align-tags :all)))