Org is one of those packages that you can use for a lifetime and still not know
all of its features. One of the first things you learn is how to use the
#+STARTUP header to define the initial visibility of headlines when you first
open an org-mode file. But did you know you can also use that on a per headline
basis?
Besides the usual 4 attributes you can chose from for the header (overview,
content, showall and showeverything), you can also assign similar options
to the VISIBILITY property of any headline. The specific options are folded,
children, content, and all, and their names are fairly self-explanatory.
As an example, remember this screenshot of my init.org from the birthday post?
To achieve that, you just had to set the * init.el headline to have
:VISIBILITY: children, along with the usual startup header you see in the
image. I was almost implementing this myself, when I decided to Google first and
wasn’t surprised to find org-mode already had it.
Fine-tuning subtree visibility in org-mode
29 Jun 2015, by Artur Malabarba.Org is one of those packages that you can use for a lifetime and still not know all of its features. One of the first things you learn is how to use the
#+STARTUP
header to define the initial visibility of headlines when you first open an org-mode file. But did you know you can also use that on a per headline basis?Besides the usual 4 attributes you can chose from for the header (
overview
,content
,showall
andshoweverything
), you can also assign similar options to theVISIBILITY
property of any headline. The specific options arefolded
,children
,content
, andall
, and their names are fairly self-explanatory.As an example, remember this screenshot of my
init.org
from the birthday post?To achieve that, you just had to set the
* init.el
headline to have:VISIBILITY: children
, along with the usual startup header you see in the image. I was almost implementing this myself, when I decided to Google first and wasn’t surprised to find org-mode already had it.Tags: emacs,
Applying Markup to Strings in org-mode »
« How I blog: One year of posts in a single org file
Content © 2019, All rights reserved. Icons under CC3.0.