Dumb indent on TAB when in middle of subtree

This commit is contained in:
Henrik Lissner 2020-01-01 21:00:59 -05:00
parent 07823d00a7
commit d84df72364
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -360,6 +360,12 @@ Made for `org-tab-first-hook' in evil-mode."
((org-in-src-block-p t)
(org-babel-do-in-edit-buffer
(call-interactively #'indent-for-tab-command))
t)
((and (save-excursion
(skip-chars-backward " \t")
(bolp))
(org-in-subtree-not-table-p))
(call-interactively #'tab-to-tab-stop)
t)))
;;;###autoload