emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scott Randby <srandby@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: OrgStruct: start with collapsed view
Date: Fri, 31 Oct 2014 18:10:10 -0400	[thread overview]
Message-ID: <545408C2.8020200@gmail.com> (raw)
In-Reply-To: <87oastn30d.fsf@gmail.com>

On 10/30/2014 08:41 AM, Thorsten Jolitz wrote:
> Karl Voit <devnull@Karl-Voit.at> writes:
>
>> Hi!
>>
>> * Thorsten Jolitz <tjolitz@gmail.com> wrote:
>>> Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:
>>>
>>>> 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.
>>
>> I also transformed my 3657 lines of init.el to OrgStruct.
>>
>> Similar to Marcin, I want to see a collapsed view of my headings
>> when I open my init.el file. org-overview gives me a weird view of
>> all lines that start a parenthesis on top level (defun, setq, ...)
>> and not my top level OrgStruct comment lines.
>>
>> Has somebody successfully managed to get a collapsed init.el view
>> when opening the file?
>
> Not a solution, but an alternative (and an interesting experiment):
>
> What if you try navi-mode with your orgstruct init.el? It works with
> outshine and with org-mode, so maybe with orgstruct too?

I found this on http://orgmode.org/worg/org-tutorials/org-outside-org.html.

   "orgstruct currently does NOT work with outorg and navi-mode..."

Scott Randby

>
> I always have the source file in 'show-all' mode side-by-side with its
> *Navi* buffer that give me the overview (and dozens of other views
> too). Constantly changing visibility in a file is to much action and
> distraction IMO, I rather have a 2nd buffer for the overview.
>
> Let me know if it works, I did not try navi-mode with orgstruct yet.
>

  reply	other threads:[~2014-10-31 22:10 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-31  8:37 Moving my init.el to Org Marcin Borkowski
2014-08-31  9:20 ` Thorsten Jolitz
2014-08-31 10:05   ` Thorsten Jolitz
2014-08-31 12:45   ` Alan Schmitt
2014-08-31 14:12     ` Thorsten Jolitz
2014-09-01 20:27       ` Alan Schmitt
2014-09-01 21:24         ` Thorsten Jolitz
2014-09-02  8:20           ` Alan Schmitt
2014-09-02  9:22             ` Thorsten Jolitz
2014-08-31 10:37 ` Rasmus
2014-08-31 12:41 ` Grant Rettke
2014-09-01  1:24 ` Brady Trainor
2014-09-01 15:27 ` Oleh
2014-09-02  9:01   ` Rainer M Krug
2014-09-02 12:42     ` Rasmus
2014-09-02 12:52       ` Jonathan Leech-Pepin
2014-09-03  6:49         ` Rainer M Krug
2014-09-03 11:17     ` Oleh
2014-09-03 11:48       ` Rainer M Krug
2014-09-05 14:27 ` Marcin Borkowski
2014-09-06  2:49   ` Thorsten Jolitz
2014-09-06  9:26     ` Eduardo Ochs
2014-09-06 10:10       ` Thorsten Jolitz
2014-10-30 10:19     ` OrgStruct: start with collapsed view (was: Moving my init.el to Org) Karl Voit
2014-10-30 10:32       ` OrgStruct: start with collapsed view Rasmus
2014-10-30 12:41       ` Thorsten Jolitz
2014-10-31 22:10         ` Scott Randby [this message]
2014-11-01 10:16           ` Karl Voit
2014-11-01 10:44           ` Thorsten Jolitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=545408C2.8020200@gmail.com \
    --to=srandby@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).