From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Filippo A. Salustri" Subject: Re: hide #+ lines? Date: Sat, 19 Mar 2011 18:38:37 -0400 Message-ID: References: <20110319220644.GA2276@soloJazz.com> <9973.1300573610@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=56669 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q14nC-0000u8-4b for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 18:38:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q14nA-0001Wo-Lf for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 18:38:41 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:54484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q14nA-0001Wf-Fq for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 18:38:40 -0400 Received: by wwc33 with SMTP id 33so5541531wwc.30 for ; Sat, 19 Mar 2011 15:38:39 -0700 (PDT) In-Reply-To: <9973.1300573610@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 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. Cheers. Fil' On 19 March 2011 18:26, Nick Dokos wrote: > Juan Pechiar wrote: > >> On Sat, Mar 19, 2011 at 05:27:23PM -0400, Filippo A. Salustri wrote: >> > I've started using #+ blocks here and there, and (meaning no >> > disrespect) I find them a bit ugly. =A0I would much rather there were >> > some way to hide the #+ directives (without, of course, impeding their >> > functionality). >> > I believe I've done my due diligence, checking doc & google, but I >> > can't find anything to help. >> > >> > Anyone got something to offer? >> >> If you are referring to directives such as export templates, etc., >> these can in general be placed anywhere in the document. For example, >> inside a COMMENT'ed heading at the end of the document, with folded >> view as default. >> >> You can also have all that in another file and use #+setupfile or >> #include for inclusion. >> >> Other things such as #+category have their equivalent as properties, >> which are normally folded. > > 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 - > isn't that what drawers are for? :-) Keep the drawer closed and the mess > is hidden - and it is not affected by general visibility cycling: you > have to open the drawer deliberately. > > The top of one of my org files looks like this: > > --8<---------------cut here---------------start------------->8--- > :SETUP: > #+STARTUP: showall lognotedone > #+SEQ_TODO: TODO(t) STARTED(s) WAITING(w) | DONE(d) DEFERRED CANCELLED(c) > #+TAGS: { FINANCES(f) HOME(h) PACC(p) SCHOOL(s) WORK(w) } CALL(c) ERRAND(= e) > :END: > --8<---------------cut here---------------end--------------->8--- > > You need to set up the variable org-drawers - see section 2.8 of the Org = manual. > > 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/