mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: fix tab not folding src blocks
This commit is contained in:
@ -337,14 +337,11 @@ with `org-cycle')."
|
|||||||
(unless (eq this-command 'org-shifttab)
|
(unless (eq this-command 'org-shifttab)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(org-beginning-of-line)
|
(org-beginning-of-line)
|
||||||
(cond ((org-at-heading-p)
|
(when (org-at-heading-p)
|
||||||
(outline-toggle-children)
|
(outline-toggle-children)
|
||||||
(unless (outline-invisible-p (line-end-position))
|
(unless (outline-invisible-p (line-end-position))
|
||||||
(org-cycle-hide-drawers 'subtree))
|
(org-cycle-hide-drawers 'subtree))
|
||||||
t)
|
t))))
|
||||||
((org-in-src-block-p)
|
|
||||||
(org-babel-remove-result)
|
|
||||||
t)))))
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defalias #'+org/toggle-fold #'+org|toggle-only-current-fold)
|
(defalias #'+org/toggle-fold #'+org|toggle-only-current-fold)
|
||||||
|
Reference in New Issue
Block a user