Skip to content

Commit

Permalink
lang/org: tab = cycle folds if in emacs state
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hlissner committed May 31, 2021
1 parent 9ff0bf8 commit 805810b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/lang/org/autoload/org.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 805810b

Please sign in to comment.