From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Filippo A. Salustri" Subject: Re: hide #+ lines? Date: Sat, 19 Mar 2011 21:58:33 -0400 Message-ID: References: <20110319220644.GA2276@soloJazz.com> <9973.1300573610@alphaville.dokosmarshall.org> <10904.1300585332@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=48082 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q17ud-0003Hp-T5 for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 21:58:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q17uc-0004PH-Ov for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 21:58:35 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:58250) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q17uc-0004P9-JU for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 21:58:34 -0400 Received: by wwc33 with SMTP id 33so5605180wwc.30 for ; Sat, 19 Mar 2011 18:58:33 -0700 (PDT) In-Reply-To: <10904.1300585332@alphaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: Juan Pechiar , emacs-orgmode@gnu.org You're right of course. Sorry about the mixup with the attribution. Nick, your previous post that mentioned org-drawers helped my hide the eval line. Thanks for that. As for the #+BEGIN block, my installation shows these lines in a rather gaudy orange, which I do find distracting. I found that those lines do have their own face, so I made 'em dark grey (my background is black). I can still see them, but it's the text in the block that stands out now. Cheers. Fil On 19 March 2011 21:42, Nick Dokos wrote: > 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/fo= cus=3D2732 > and there is another bit of setup needed to keep the drawer closed to beg= in > with. Carsten suggested > > (add-hook 'org-mode-hook > =A0 =A0 =A0 (lambda () (org-cycle-hide-drawers 'all))) > >> >> Juan & Nick, >> I like your ideas, but my case is a little different. =A0I 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 > > > --=20 Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salustri@ryerson.ca http://deseng.ryerson.ca/~fil/