diff options
author | Case Duckworth | 2021-10-21 19:01:00 -0500 |
---|---|---|
committer | Case Duckworth | 2021-10-21 19:01:00 -0500 |
commit | f91fb9f3d0b9933ba78ec08bf1d41b394c2a5b2f (patch) | |
tree | 8cc28eec45aaf2d3dc2e93096b03ea38de9b1e2a | |
parent | Format more circe messages (diff) | |
download | emacs-f91fb9f3d0b9933ba78ec08bf1d41b394c2a5b2f.tar.gz emacs-f91fb9f3d0b9933ba78ec08bf1d41b394c2a5b2f.zip |
Un-stupidify org-mode filling
-rw-r--r-- | init.el | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/init.el b/init.el index 5a8cc48..c2fbadf 100644 --- a/init.el +++ b/init.el | |||
@@ -2250,12 +2250,9 @@ browser defined in `browse-url-secondary-browser-function'." | |||
2250 | 2250 | ||
2251 | (:local-hook before-save-hook | 2251 | (:local-hook before-save-hook |
2252 | (defun org/before-save@prettify-buffer () | 2252 | (defun org/before-save@prettify-buffer () |
2253 | (run-with-idle-timer 1 nil | 2253 | (save-mark-and-excursion |
2254 | (lambda () | 2254 | (mark-whole-buffer) |
2255 | (with-temp-message "Filling..." | 2255 | (org-fill-paragraph nil t)) |
2256 | (save-mark-and-excursion | ||
2257 | (mark-whole-buffer) | ||
2258 | (org-fill-paragraph nil t))))) | ||
2259 | (acdw-org/fix-blank-lines t) | 2256 | (acdw-org/fix-blank-lines t) |
2260 | (org-align-tags :all))) | 2257 | (org-align-tags :all))) |
2261 | 2258 | ||