mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: fix default TAB behavior for non-evil org users
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user