lang/org: fix backtab not outdenting items/headers

This commit is contained in:
Henrik Lissner
2018-07-30 04:04:13 +02:00
parent 824abaf2e6
commit c935f3e4da

View File

@ -348,10 +348,15 @@ another level of headings on each invocation."
(not (eq evil-state 'insert)))
nil)
((org-at-item-p)
(org-indent-item-tree)
(if (eq this-command 'org-shifttab)
(org-outdent-item-tree)
(org-indent-item-tree))
t)
((org-at-heading-p)
(ignore-errors (org-demote))
(ignore-errors
(if (eq this-command 'org-shifttab)
(org-promote)
(org-demote)))
t)
((org-in-src-block-p t)
(org-babel-do-in-edit-buffer