diff options
-rw-r--r-- | lisp/+org.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/+org.el b/lisp/+org.el index 9af2dda..0324cd5 100644 --- a/lisp/+org.el +++ b/lisp/+org.el | |||
@@ -339,11 +339,13 @@ Return as a list." | |||
339 | (defun +org-before-save@prettify-buffer () | 339 | (defun +org-before-save@prettify-buffer () |
340 | (when +org-before-save-prettify-buffer | 340 | (when +org-before-save-prettify-buffer |
341 | (save-mark-and-excursion | 341 | (save-mark-and-excursion |
342 | (mark-whole-buffer) | 342 | (+org-unsmartify) |
343 | ;;(org-fill-paragraph nil t) | 343 | (+org-fix-blank-lines t) |
344 | (+org-unsmartify) | 344 | (org-align-tags t) |
345 | (+org-fix-blank-lines t) | 345 | (when (buffer-narrowed-p) |
346 | (org-align-tags t)))) | 346 | (goto-char (point-min)) |
347 | (forward-line 1) | ||
348 | (org-narrow-to-subtree))))) | ||
347 | 349 | ||
348 | (defun +org-delete-backward-char (N) | 350 | (defun +org-delete-backward-char (N) |
349 | "Keep tables aligned while deleting N characters backward. | 351 | "Keep tables aligned while deleting N characters backward. |