Skip to content

How to add advice to achieve for org buffer like to collapse all other headings after executing 'consult-org-heading'? #943

Answered by minad
IceAsteroid asked this question in Q&A
Discussion options

You must be logged in to vote

This works for me:

(advice-add #'consult-outline :before (lambda (&rest _) (org-fold-hide-sublevels 1)))

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
6 replies
@minad
Comment options

@IceAsteroid
Comment options

@minad
Comment options

@IceAsteroid
Comment options

@minad
Comment options

Comment options

You must be logged in to vote
2 replies
@minad
Comment options

Answer selected by IceAsteroid
@IceAsteroid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #942 on February 21, 2024 10:48.