Marcin Borkowski <mb...@wmi.amu.edu.pl> writes:

> Hi,
>
> and thanks for all the great replies!
>
> I ended up using orgstruct mode, which is probably the simplest one,
> and (AFAIU) it will enable me to switch easily to outshine if (when?)
> orgstruct is not enough for me.
>
> And now there's another problem: I'd like to have my init file
> collapsed to only headlines on opening.  Since I visit my init file
> through a custom command (which finds it and turns on orgstruct), I
> don't need to use file local variables for that - I just need a
> command to do it.  So:
>
> how do I (programmatically, in elisp) collapse the view of
> an orgstruct .el file?

Try 'org-overview'. Both, 'org-overview' and 'show-all' work
with outshine too, so they should work with org-struct.

-- 
cheers,
Thorsten


Reply via email to