From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: OrgStruct: start with collapsed view Date: Thu, 30 Oct 2014 11:32:08 +0100 Message-ID: <87mw8ddf13.fsf@gmx.us> References: <20140831103706.549dc45b@aga-netbook> <20140905162710.3464a0db@aga-netbook> <878ulxbgzm.fsf@gmail.com> <2014-10-30T11-15-25@devnull.Karl-Voit.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xjn1r-00079D-Pf for emacs-orgmode@gnu.org; Thu, 30 Oct 2014 06:32:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xjn1m-00087m-Bn for emacs-orgmode@gnu.org; Thu, 30 Oct 2014 06:32:31 -0400 Received: from plane.gmane.org ([80.91.229.3]:44215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xjn1m-00087Q-6H for emacs-orgmode@gnu.org; Thu, 30 Oct 2014 06:32:26 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xjn1i-0004xQ-8V for emacs-orgmode@gnu.org; Thu, 30 Oct 2014 11:32:22 +0100 Received: from 46.166.186.232 ([46.166.186.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Oct 2014 11:32:22 +0100 Received: from rasmus by 46.166.186.232 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Oct 2014 11:32:22 +0100 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 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? Nope. And `org-overview' produces a mess of my file as well. I have, ;; -*- orgstruct-heading-prefix-regexp: ";;" -*- And headings look like ;;* h ;;** h1 —Rasmus -- m-mm-mmm-mmmm bacon!