How to fold all blocks below a certain level in emacs org mode?

I often need to see information up to (actually) a certain level of detail. Is there a way to expand the blocks at a specific level and hide the rest? For example:

* name
Joe
** home number
111-111-1111
*** hobby
fishing
*** likes
books
** work number
222-222-2222

      

If the blocks of the third and lower levels are rarely used, I would like them to be folded as such:

* name
Joe
** home number
111-11-1111
*** hobby...
*** likes...
** work number
222-22-2222

      

+3


source to share


2 answers


There hide-sublevels

. The exact number to use for the level you want usually depends on the major mode, ie I usually use C-1 M-x hide-sublevels

(aka C-1 C-c C-q

), but for some major modes I use much deeper levels.



+4


source


If you place the cursor at the beginning of the buffer, it is easy <TAB>

to loop through the visibility of the entire subtree.

Alternatively, calling it with a prefix argument sets the global subtree visibility to the depth given by the ( C-u <TAB>

) argument . For example; C-u 3 <TAB>

will show everything up to the third level of the tree and hide everything below that.



Also see http://orgmode.org/manual/Visibility-cycling.html#Visibility-cycling

+1


source







All Articles