From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: include file contents in org files? Date: Wed, 22 Aug 2007 22:25:14 +0200 Message-ID: References: <87bqd0qwql.fsf@bzg.ath.cx> <20070822091042.GC25403@atlantic.linksys.moosehall> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INwle-0002WL-6h for emacs-orgmode@gnu.org; Wed, 22 Aug 2007 16:25:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INwlY-0002Mf-Kl for emacs-orgmode@gnu.org; Wed, 22 Aug 2007 16:25:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INwlY-0002M4-BO for emacs-orgmode@gnu.org; Wed, 22 Aug 2007 16:25:24 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1INwlY-0005jL-5D for emacs-orgmode@gnu.org; Wed, 22 Aug 2007 16:25:24 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1INwlQ-0008Dt-Rt for emacs-orgmode@gnu.org; Wed, 22 Aug 2007 22:25:18 +0200 Received: from p57af35ce.dip0.t-ipconnect.de ([87.175.53.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Aug 2007 22:25:16 +0200 Received: from rainer.stengele by p57af35ce.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Aug 2007 22:25:16 +0200 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: emacs-orgmode@gnu.org Carsten Dominik schrieb: > 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 I use the drawers. Works perfect. Thanks a lot!