lang/org: add evil insert check to +org|indent-maybe

This commit is contained in:
Henrik Lissner 2018-02-13 18:33:36 -05:00
parent 7b70aa9b7d
commit 5b92c3d99f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -288,7 +288,10 @@ with `org-cycle'). Also:
"Indent the current item (header or item), if possible. Made for
`org-tab-first-hook'."
(interactive)
(cond ((org-at-item-p)
(cond ((and (bound-and-true-p evil-mode)
(not (eq evil-state 'insert)))
nil)
((org-at-item-p)
(org-indent-item-tree)
t)
((org-at-heading-p)