lang/org: tab = cycle folds if in emacs state

Tab should only be changed for evil users in insert mode, since they
have fold cycling functionality available in normal mode and vanilla
users do not.
This commit is contained in:
Henrik Lissner 2021-05-31 14:22:54 -04:00
parent 9ff0bf8851
commit 805810b95f

View file

@ -389,8 +389,7 @@ another level of headings on each invocation."
Made for `org-tab-first-hook' in evil-mode."
(interactive)
(cond ((not (and (bound-and-true-p evil-local-mode)
(or (evil-insert-state-p)
(evil-emacs-state-p))))
(evil-insert-state-p)))
nil)
((org-at-item-p)
(if (eq this-command 'org-shifttab)