I'm new to Elisp and I'd like to start using Emacs org Mode as my main writing tool. For that to happen I'm trying to set up a good configuration with custom functions. What I'm trying to achieve is "display the org document as content only". When I press SHIFT+TAB in Org mode, the buffer cycles between "Overview", "Content" and "Show All". I found that I could switch to "Overview" using command org-overview, but I can't find how to activate "Content" or "Show All" using Elisp.

EDIT: Here is the different style of one simple org document. What I want to find is what commands could swap my document state to "Content" or "Show All":

Overview: enter image description here

Content: enter image description here

Show All: enter image description here


You are looking for the command outline-show-all.

The doc of that command is:

outline-show-all is an interactive compiled Lisp function in outline.el.

It is bound to <menu-bar> <Org> <Show/Hide> <Show All>.


Show all of the text in the buffer.

You can easily find that information by pressing C-h k (bound to the command describe-key) and clicking on the menu item OrgShow/HideShow All.

You get the table of contents with the command org-content:

org-content is an interactive compiled Lisp function in org.el.

(org-content &optional ARG)

For more information check the manuals.

Show all headlines in the buffer, like a table of contents. With numerical argument N, show content up to level N.

  • Wow. Thanks. What about the "content" view? – lvictorino Aug 7 '19 at 14:06
  • @lvictorino Sorry, my bad. The visibility level CONTENTS is clearly defined in the manual. I added a note about the command org-content. – Tobias Aug 7 '19 at 14:34
  • no worries <3 thanks a lot! – lvictorino Aug 7 '19 at 14:41
  • (and thanks for showing me C-h k! It'll be useful. – lvictorino Aug 7 '19 at 14:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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