From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Tangling text files Date: Fri, 27 Jan 2012 18:13:23 +0000 Message-ID: <4F22E943.9040603@wilkesley.net> References: <46C672C4-4401-4ADD-8E30-68CAC7B1522F@coateconnection.com> 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]:56363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqqJk-0005iK-AV for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 13:14:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RqqJi-0004UH-MC for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 13:14:32 -0500 Received: from mail.ian-barton.com ([109.74.196.44]:34359 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqqJi-0004PE-Hw for emacs-orgmode@gnu.org; Fri, 27 Jan 2012 13:14:30 -0500 Received: from [192.168.0.183] (unknown [217.146.125.41]) (Authenticated sender: lists@wilkesley.net) by li40-130.members.linode.com (Postfix) with ESMTPSA id 86D243091DA for ; Fri, 27 Jan 2012 18:14:16 +0000 (GMT) In-Reply-To: <46C672C4-4401-4ADD-8E30-68CAC7B1522F@coateconnection.com> 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 27/01/12 18:07, dlc wrote: > How do I tangle txt to a txt file? > > #+TITLE: Centos 5 Apache Configuration > #+AUTHOR: David Coate > > * Basic Conguration > * Php Settings > * Virtual Host > e.g. for apache configuration > ** example.com > Use this as main website, use drupal, various other notes > > #+BEGIN_SRC: txt :tangle vhost.conf > ServerName Example.com > DocumentRoot "/var/www/example.com" > #+END_SRC: > > ** companyb.com > notes about company b. > #+BEGIN_SRC: txt :tangle vhost.conf > ServerName Companyb.com > DocumentRoot "/var/www/companyb.com" > #+END_SRC: > > ... and so on for 40 more web sites. > > I still want to be able to export this as HTML to document to others > what i've done and use the org file to maintain the webpage and the > source conf files. > > Same issue for documenting my configuration files for postfix, dovecot, > drupal settings, php.ini settings. > > I'm sure this is easy, but searching the org manual or googling is not > getting me the right answer. > > #+BEGIN_ASCII and #+BEGIN_EXAMPLE seem to be for exporting only and not > tangling. > I don't know if this is the "right" way, but I just pretend my files are shell scripts: * Dovecot. ** dovecot.conf #+BEGIN_SRC sh :tangle ~/dropbox/configuration_files/wilkesley.org/dovecot/dovecot.conf :exports none :noweb yes protocols = imap sieve ssl = yes ssl_cert =