Function: org-indent-block
org-indent-block is an interactive and byte-compiled function defined
in org.el.gz.
Signature
(org-indent-block)
Documentation
Indent the block at point.
Signal an error when not at a block.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-indent-block ()
"Indent the block at point.
Signal an error when not at a block."
(interactive)
(let ((element (org-element-at-point)))
(unless (org-element-type-p
element
'(comment-block center-block dynamic-block example-block
export-block quote-block special-block
src-block verse-block))
(user-error "Not at a block"))
(org-with-wide-buffer
(org-indent-region (org-element-begin element)
(org-element-end element))))
(message "Block at point indented"))