From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: include file contents in org files? Date: Wed, 22 Aug 2007 13:07:52 +0200 Message-ID: References: <87bqd0qwql.fsf@bzg.ath.cx> <20070822091042.GC25403@atlantic.linksys.moosehall> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INo45-0002Cb-Qo for emacs-orgmode@gnu.org; Wed, 22 Aug 2007 07:07:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INo43-0002C4-No for emacs-orgmode@gnu.org; Wed, 22 Aug 2007 07:07:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INo43-0002Bx-HF for emacs-orgmode@gnu.org; Wed, 22 Aug 2007 07:07:55 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INo43-0005YN-2j for emacs-orgmode@gnu.org; Wed, 22 Aug 2007 07:07:55 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer Stengele Cc: emacs-orgmode@gnu.org On Aug 22, 2007, at 12:54, Rainer Stengele wrote: > > Taking the idea a little "around the corner" I wonder if it would be > possible to hide everything that begins with a "#" before the first > heading. > Application: I have my org files under subversion control and carry > around this line at the beginning of my files: > > > # SVN $Revision: 385 $ $Date: 2007-08-21 23:50:43 +0200 (Di, 21 Aug > 2007) $ > > I would like to hide that and similar lines unless showing all with > "C-c C-a". Also a possible "#include" line could be hidden. If > somebody wants to see the lines - of course - a config option would do > it. > > Rainer The easiest way is this: * COMMENT setup section #+STARTUP: overview more stuff that should be hidden * The first "real" headline in the file. Another possibility woud be to use a drawer for this, for example a SETUP drawer. (setq org-drawers '("PROPERTIES" "SETUP")) Then you could write :SETUP: #+STARTUP: overview more stuff that should be hidden :END: * The first "real" headline in the file. All you then need to do is to make sure that the drawer will be closed when first visiting the file, for example (add-hook 'org-mode-hook (lambda () (org-cycle-hide-drawers 'all))) - Carsten