From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: hide #+ lines? Date: Sat, 19 Mar 2011 21:42:12 -0400 Message-ID: <10904.1300585332@alphaville.dokosmarshall.org> References: <20110319220644.GA2276@soloJazz.com> <9973.1300573610@alphaville.dokosmarshall.org> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=53063 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q17f2-0003mt-Km for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 21:42:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q17f1-0002YU-Dv for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 21:42:28 -0400 Received: from vms173011pub.verizon.net ([206.46.173.11]:62004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q17f1-0002Y9-Ap for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 21:42:27 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LIC00ATC22D4OO0@vms173011.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 20:42:14 -0500 (CDT) In-reply-to: Message from "Filippo A. Salustri" of "Sat, 19 Mar 2011 18:38:37 EDT." 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: "Filippo A. Salustri" Cc: Juan Pechiar , emacs-orgmode@gnu.org, nicholas.dokos@hp.com Filippo A. Salustri wrote: > > On 19 March 2011 18:26, Nick Dokos wrote: > ... > > Another similar solution (cribbed from this list, but I don't remember > > who suggested it) is to define a drawer and put all that stuff in it - That was Carsten: see http://thread.gmane.org/gmane.emacs.orgmode/2722/focus=2732 and there is another bit of setup needed to keep the drawer closed to begin with. Carsten suggested (add-hook 'org-mode-hook (lambda () (org-cycle-hide-drawers 'all))) > > Juan & Nick, > I like your ideas, but my case is a little different. I only want to > hide the BEGIN/END statements, not what comes between them. > That is, I'm using a trick Ido Magal suggested > (http://permalink.gmane.org/gmane.emacs.orgmode/39226). > It works fine, except I see all the distracting block directives. > The first line in the posting you point to is not org-mode related at all: it asks emacs to eval the form when the file is visited. Since emacs requires that to be the *first* line you cannot do anything about that. However, there is another way to specify local variables: in a "Local variables" section at the end of the file. That *can* be put into a drawer: :SETUP: # Local variables: # eval: (org-update-all-dblocks) # End: :END: but it becomes the "personal property" of the last headline, so if that is folded, the drawer is completely invisible and if it's deep in the tree it becomes difficult to find. I would put it under its own headline, perhaps "* COMMENT setup". The #+BEGIN: ... / #+END surrounding the output of the dblock cannot be hidden afaik, but are they really distracting? I find them helpful in focusing my eyes on the output. Nick