From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Moving my init.el to Org Date: Sat, 06 Sep 2014 04:49:33 +0200 Message-ID: <878ulxbgzm.fsf@gmail.com> References: <20140831103706.549dc45b@aga-netbook> <20140905162710.3464a0db@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQ64Z-0001K9-Vb for emacs-orgmode@gnu.org; Fri, 05 Sep 2014 22:50:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQ64T-0000hW-UL for emacs-orgmode@gnu.org; Fri, 05 Sep 2014 22:49:55 -0400 Received: from plane.gmane.org ([80.91.229.3]:43422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQ64T-0000hS-Nc for emacs-orgmode@gnu.org; Fri, 05 Sep 2014 22:49:49 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XQ64Q-0000Rz-13 for emacs-orgmode@gnu.org; Sat, 06 Sep 2014 04:49:46 +0200 Received: from e178063072.adsl.alicedsl.de ([85.178.63.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Sep 2014 04:49:46 +0200 Received: from tjolitz by e178063072.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Sep 2014 04:49:46 +0200 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 Marcin Borkowski 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