mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: +org/toggle-fold removes babel result blocks
This commit is contained in:
@ -137,8 +137,10 @@ wrong places)."
|
||||
;;;###autoload
|
||||
(defun +org/toggle-fold ()
|
||||
"Toggle the local fold at the point (as opposed to cycling through all levels
|
||||
with `org-cycle')."
|
||||
with `org-cycle'). Also removes babel result blocks, if run from a code block."
|
||||
(interactive)
|
||||
(org-babel-when-in-src-block
|
||||
(call-interactively 'org-babel-remove-result-one-or-many))
|
||||
(cond ((org-at-heading-p)
|
||||
(outline-toggle-children))
|
||||
((org-at-item-p)
|
||||
|
Reference in New Issue
Block a user