From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Babel Tangling Only Blocks Under One Heading in a File with Multiple Blocks. Date: Tue, 22 Nov 2011 14:02:36 +0000 Message-ID: <4ECBAB7C.1020209@wilkesley.net> References: <4ECBA544.5010006@wilkesley.net> Reply-To: ian@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSqwI-0006gC-L1 for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 09:03:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSqw9-0002nD-2x for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 09:03:10 -0500 Received: from mail.ian-barton.com ([109.74.196.44]:42878 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSqw8-0002mw-NJ for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 09:03:00 -0500 Received: from [192.168.0.133] (unknown [217.146.125.41]) (Authenticated sender: lists@wilkesley.net) by li40-130.members.linode.com (Postfix) with ESMTPSA id 2400526A3E4 for ; Tue, 22 Nov 2011 14:02:59 +0000 (GMT) In-Reply-To: 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 On 22/11/11 13:46, Rainer M Krug wrote: > > > On Tue, Nov 22, 2011 at 2:36 PM, Ian Barton > wrote: > > I am using org to keep configuration files for my various servers. A > typical file might look like: > > * Postfix > ** main.cf > #+BEGIN_SRC sh :tangle > ~/dropbox/configuration_files/__wilkesley.org/postfix/main.cf > :exports none :noweb yes > > #+END_SRC > ** master.cf > > * Dovecot > ** dovecot.conf > > Mostly I only change one configuration file and don't need to tangle > every block in my org file. Is there any method to only tangle files > under a particular heading? Thus I could regenerate just my Postfix > config files and not my Dovecot ones. > > > Check org-narrow-to-subtree - you can narrow to subtree and then tangle. > > Cheers, > Thanks, that does the job nicely. Ian.