From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Moving my init.el to Org Date: Fri, 5 Sep 2014 16:27:10 +0200 Message-ID: <20140905162710.3464a0db@aga-netbook> References: <20140831103706.549dc45b@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPuUJ-0003g3-4D for emacs-orgmode@gnu.org; Fri, 05 Sep 2014 10:27:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPuUD-0002rS-CM for emacs-orgmode@gnu.org; Fri, 05 Sep 2014 10:27:42 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:41525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPuUD-0002qK-4p for emacs-orgmode@gnu.org; Fri, 05 Sep 2014 10:27:37 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id AF92C4AD72 for ; Fri, 5 Sep 2014 16:27:12 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id auGLQET8NymH for ; Fri, 5 Sep 2014 16:27:12 +0200 (CEST) Received: from aga-netbook (unknown [185.13.171.31]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 802AD4AD6D for ; Fri, 5 Sep 2014 16:27:12 +0200 (CEST) In-Reply-To: <20140831103706.549dc45b@aga-netbook> 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 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? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University