From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Starter-kit: How to disable some heading from the initialization Date: Wed, 27 Apr 2011 21:43:52 -0600 Message-ID: <87k4efoxaf.fsf@gmail.com> References: <4db8df02.1074650a.4ec7.4679@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFI93-00079l-8h for emacs-orgmode@gnu.org; Wed, 27 Apr 2011 23:44:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFI91-00028Z-Gz for emacs-orgmode@gnu.org; Wed, 27 Apr 2011 23:44:01 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:48198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFI91-00028Q-AC for emacs-orgmode@gnu.org; Wed, 27 Apr 2011 23:43:59 -0400 Received: by pzk4 with SMTP id 4so2017158pzk.0 for ; Wed, 27 Apr 2011 20:43:58 -0700 (PDT) In-Reply-To: <4db8df02.1074650a.4ec7.4679@mx.google.com> (Darlan Cavalcante Moreira's message of "Thu, 28 Apr 2011 00:29:02 -0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Darlan Cavalcante Moreira Cc: Orgmode Mailing List Darlan Cavalcante Moreira writes: > Hello list, > > I have changed my Emacs initialization from the .emacs file (loading > several .el files) to org-mode by using the excellent starter kit. I use a > single .org file with the initialization code broken down into level-1 > headings, possible with subheadings. > > This works very well, but I'd like to disable some sections that I don't > need at the moment or to identify where most of the initialization time is > spent. > > 1.) At first I tried to add the COMMENT keyword in a heading with "C-c ;", > but without any effect. This would be the preferred option IMHO, since > you get an easy visual feedback about which parts of the > initialization are disabled. > > 2.) Then I tried adding the ":TANGLE: nil" property to a heading, but > again without success. The starter kit probably adds something such as > ":tangle org_file_name.el" to each source block thus overwriting > the :TANGLE: property of the heading. > Very Close, try adding the ":tangle: no" properties to headings to disable their tangling (note: ":TANGLE: no" should work as well). Best -- Eric > > 3.) At last, I tried to add ":tangle nil" to each individual source block > I wanted to disable. This works, but because each heading can have > many source blocks it is a lot of work to add this to each one (and > remove later if I want to enable this configuration again). > > Is there an easy way to do this? If not, I'd like to suggest 1.) or 2.) as > a feature request. > > -- > Darlan > -- Eric Schulte http://cs.unm.edu/~eschulte/