mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
refactor(format): +format/org-block: make arg optional
This commit is contained in:
@ -84,7 +84,7 @@ may not always work. Keep your undo keybind handy!"
|
|||||||
#'+format/buffer)))
|
#'+format/buffer)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +format/org-block (point)
|
(defun +format/org-block (&optional point)
|
||||||
"Reformat the org src block at POINT with a mode approriate formatter."
|
"Reformat the org src block at POINT with a mode approriate formatter."
|
||||||
(interactive (list (point)))
|
(interactive (list (point)))
|
||||||
(unless (derived-mode-p 'org-mode)
|
(unless (derived-mode-p 'org-mode)
|
||||||
|
Reference in New Issue
Block a user