Add autoload directives for org-format

This commit is contained in:
Chris Barrett
2023-08-11 23:42:25 +12:00
parent 16e296010f
commit 0a6634df27

View File

@@ -126,6 +126,7 @@ Only applies to level-1 headings in the document."
(goto-char (line-beginning-position))
(org-format--ensure-empty-lines org-format-blank-lines-before-subheadings)))))
;;;###autoload
(defun org-format-buffer ()
"Format the current `org-mode' buffer."
(interactive)
@@ -154,6 +155,7 @@ Only applies to level-1 headings in the document."
;; org-transclusion, etc.
(defvar org-format-on-save-mode-hook-depth 95)
;;;###autoload
(define-minor-mode org-format-on-save-mode
"Minor mode to enable formatting on buffer save in `org-mode'."
:lighter nil