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:
parent
9ff0bf8851
commit
805810b95f
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue