-
-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Description
I've noticed in a lot of your videos you copy/paste code into an Emacs lisp source block and then manually fix the indent.
This is Emacs lisp - it's trivial to autoindent it! Below is a function that will do this for you:
(defun mn:indent-src-block ()
(interactive)
(org-edit-special)
(indent-region (point-min) (point-max))
(org-edit-src-exit))Simply invoke it while the point is in a source block.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels