lang/org: fix default TAB behavior for non-evil org users

This commit is contained in:
Henrik Lissner 2018-03-20 16:46:36 -04:00
parent 612efccd72
commit e929f831f6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -308,10 +308,10 @@ with `org-cycle'). Also:
;;;###autoload ;;;###autoload
(defun +org|indent-maybe () (defun +org|indent-maybe ()
"Indent the current item (header or item), if possible. Made for "Indent the current item (header or item), if possible. Made for
`org-tab-first-hook'." `org-tab-first-hook' in evil-mode."
(interactive) (interactive)
(cond ((and (bound-and-true-p evil-mode) (cond ((or (not (bound-and-true-p evil-mode))
(not (eq evil-state 'insert))) (not (eq evil-state 'insert)))
nil) nil)
((org-at-item-p) ((org-at-item-p)
(org-indent-item-tree) (org-indent-item-tree)