From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: control tangling from section header Date: Mon, 23 Feb 2015 15:54:31 +0100 Message-ID: <87a904llug.fsf@gmx.us> References: <8661auhuh6.fsf@me.localhost.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36289) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPuPP-0002to-SQ for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 09:54:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPuPJ-0004Ed-7I for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 09:54:55 -0500 Received: from plane.gmane.org ([80.91.229.3]:47914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPuPI-0004ER-Vz for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 09:54:49 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YPuPG-0000Tk-UN for emacs-orgmode@gnu.org; Mon, 23 Feb 2015 15:54:46 +0100 Received: from 46.166.186.236 ([46.166.186.236]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Feb 2015 15:54:46 +0100 Received: from rasmus by 46.166.186.236 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Feb 2015 15:54:46 +0100 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: emacs-orgmode@gnu.org Daniele Pizzolli writes: > Hello Ken, > > Ken Mankoff writes: > >> I'm working with my literate init file (emacs.org), and would like to >> have certain sections not tangle. I currently do this with ":tangle no" >> at the SRC block level. Is it possible to control tangling with tags at >> the header level? > > Not with tag but with PROPERTIES: > > * outline header > :PROPERTIES: > :header-args: :tangle no > :END: > > More at > http://orgmode.org/manual/Header-arguments-in-Org-mode-properties.html This is what I would do as well. >> It would make it much easier to disable/enable sections, and see what >> sections are enabled/disabled, if the tangling state were more clearly >> visible like tags are. > > I do not think that this is currently possible. I haven't tried, but maybe one could use org-babel-pre-tangle-hook or org-export-before-parsing-hook, depending on the context, to set/update properties based on tags. For an init file the timing might matter. I don't know how init.org works, but presumably there's a "ignite.el" that starts the init process using init.org? —Rasmus -- Need more coffee. . .