From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Randby Subject: Re: OrgStruct: start with collapsed view Date: Fri, 31 Oct 2014 18:10:10 -0400 Message-ID: <545408C2.8020200@gmail.com> References: <20140831103706.549dc45b@aga-netbook> <20140905162710.3464a0db@aga-netbook> <878ulxbgzm.fsf@gmail.com> <2014-10-30T11-15-25@devnull.Karl-Voit.at> <87oastn30d.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkKOj-000879-NP for emacs-orgmode@gnu.org; Fri, 31 Oct 2014 18:10:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkKOa-0002rJ-KW for emacs-orgmode@gnu.org; Fri, 31 Oct 2014 18:10:21 -0400 Received: from mail-ig0-x234.google.com ([2607:f8b0:4001:c05::234]:50916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkKOa-0002r2-GI for emacs-orgmode@gnu.org; Fri, 31 Oct 2014 18:10:12 -0400 Received: by mail-ig0-f180.google.com with SMTP id h3so1764680igd.7 for ; Fri, 31 Oct 2014 15:10:11 -0700 (PDT) Received: from [192.168.1.111] (cpe-184-56-99-2.neo.res.rr.com. [184.56.99.2]) by mx.google.com with ESMTPSA id h3sm5791484ioe.44.2014.10.31.15.10.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Oct 2014 15:10:11 -0700 (PDT) In-Reply-To: <87oastn30d.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 10/30/2014 08:41 AM, Thorsten Jolitz wrote: > Karl Voit writes: > >> Hi! >> >> * Thorsten Jolitz wrote: >>> Marcin Borkowski 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. >