From 805810b95f21327a3144baaa8cf536660d2a17ac Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 31 May 2021 14:22:54 -0400 Subject: [PATCH] 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. --- modules/lang/org/autoload/org.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/lang/org/autoload/org.el b/modules/lang/org/autoload/org.el index 2632cb6985b..91178436deb 100644 --- a/modules/lang/org/autoload/org.el +++ b/modules/lang/org/autoload/org.el @@ -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)