Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know if it is possible for org-mode to open its org files in unfolded state, and possibly with specified level (e.g no more than * headlines) and possibly with option to fold/unfold bodies as well.

share|improve this question
up vote 5 down vote accepted

You should check the #+STARTUP directive for per-file default view settings:

You can use org-customize to set global defaults, or even use the VISIBILITY property inside a heading to affect a particular sub-tree.

Allowed values include: overview, content, showall, showeverything.

I don't recall an option for specifying a global N levels of visibility (you can put together some elisp for this); anyhow this is quite easy to do on the keyboard (e.g. M-3 S-TAB will display all headings up to level 3).

share|improve this answer

Start-up folding is controlled by the org-startup-folded variable. It can also be set by placing:

#+STARTUP: fold
#+STARTUP: nofold
#+STARTUP: content
#+STARTUP: showeverything

any where in the buffer.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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