4

Hoping the question is not too brief, I'm assuming this is a fairly common operation - but I can't seem to find anything in the docs about this.

4
  • By /everything/ do you mean all subheadings, source blocks, property blocks, logbooks, and archived branches?
    – Juancho
    Commented May 19, 2018 at 11:01
  • 2
    Pressing Shift + tab?
    – Daniel
    Commented May 19, 2018 at 18:30
  • 1
    Shift tab expands everything in the document. Commented May 19, 2018 at 20:19
  • I would imagine that the answer in this related thread does what you want and then something extra that you do not want: emacs.stackexchange.com/questions/29304/… Perhaps you can just eliminate the last step that you don't want ...
    – lawlist
    Commented May 19, 2018 at 21:16

2 Answers 2

5

I was looking for this as well. It took me a while to find since it's not mentioned anywhere in the docs, but it appears that the org-show-subtree command does exactly what you want.

If you use Doom Emacs, it's bound to z O.

0

org-show-subtree was exactly I was looking for. I just want to add that the command was changed to org-fold-show-subtree (org-show-subtree is an obsolete command (as of Org version 9.6); use org-fold-show-subtree instead)

4
  • What is that "9.6"? Is that an Org release number or something? If you know, maybe mention it in the answer. (If you don't know, that's fine.) Thx.
    – Drew
    Commented Jun 30, 2023 at 12:54
  • 9.6 is the Org version, yes, visible in the variable org-version. Btw, there's also org-fold-show-branches, which only shows nested headings, but not text in them—useful for a more compact overview. Alas, Org doesn't appear to have a function for showing headings and text, but with properties kept hidden—which would be helpful for people who slap metadata on everything.
    – aaa
    Commented Jun 30, 2023 at 13:33
  • 1
    You can add an after-advice to any such commands using org-hide-drawer-all.
    – NickD
    Commented Jul 1, 2023 at 14:07
  • @NickD Brilliant, thanks.
    – aaa
    Commented Jul 1, 2023 at 20:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.