refactor(format): +format/org-block: make arg optional

This commit is contained in:
Henrik Lissner 2024-07-07 21:34:33 -04:00
parent f104f10c5b
commit 6b526b1b47
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -84,7 +84,7 @@ may not always work. Keep your undo keybind handy!"
#'+format/buffer)))
;;;###autoload
(defun +format/org-block (point)
(defun +format/org-block (&optional point)
"Reformat the org src block at POINT with a mode approriate formatter."
(interactive (list (point)))
(unless (derived-mode-p 'org-mode)