From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: hide #+ lines? Date: Sat, 19 Mar 2011 18:26:50 -0400 Message-ID: <9973.1300573610@alphaville.dokosmarshall.org> References: <20110319220644.GA2276@soloJazz.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=51221 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q14bx-0006ii-3J for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 18:27:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q14bv-00007Z-RK for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 18:27:04 -0400 Received: from vms173005pub.verizon.net ([206.46.173.5]:52556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q14bv-00007Q-LE for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 18:27:03 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LIB00HHPT0RF330@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 19 Mar 2011 17:26:51 -0500 (CDT) In-reply-to: Message from Juan Pechiar of "Sat, 19 Mar 2011 19:06:44 -0300." <20110319220644.GA2276@soloJazz.com> 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: Juan Pechiar Cc: "Filippo A. Salustri" , nicholas.dokos@hp.com, emacs-orgmode@gnu.org 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. I 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