1

Is it possible to have a SAVED visibility in Org mode ?

Something like:

   ,-> FOLDED -> SAVED -> CHILDREN -> SUBTREE --.
   '--------------------------------------------'

akin to this.

SAVED would remember the exact folding state (recorded by the command org-mode-save-folding-state-of-subtree) of the subtree. The folding of the subtree would be restored to the saved state when switching from FOLDED to SAVED.

How can this be done in Org mode ?

2 Answers 2

2

See http://orgmode.org/manual/Initial-visibility.html#Initial-visibility. You can set a VISIBILITY property on each node to specify its initial visibility, and call org-set-startup-visibility (bound to C-u C-u <TAB>) to restore those saved settings.

You may be able to write a custom command to walk the tree and set the visibility property of each node based on its current state, but there's no built-in support for that.

0

A file that, more or less, implements this functionality is available at the Emacs wiki here. The only difference is that it simply always saves/restores the folding state of all headlines (there is no separate SAVED visibility option). Just download the file and load it from your init file.

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.