From: Eric Schulte <eric.schulte@gmx.com>
To: dlc <dlc@coateconnection.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Tangling text files
Date: Fri, 27 Jan 2012 18:43:47 -0700 [thread overview]
Message-ID: <871uqka9f0.fsf@gmx.com> (raw)
In-Reply-To: <46C672C4-4401-4ADD-8E30-68CAC7B1522F@coateconnection.com> (dlc@coateconnection.com's message of "Fri, 27 Jan 2012 12:07:28 -0600")
dlc <dlc@coateconnection.com> writes:
> 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:
>
It is actually just a syntax problem, you should delete the ":"s after
your begin and end src lines so the above becomes
#+BEGIN_SRC txt :tangle vhost.conf
ServerName Example.com
DocumentRoot "/var/www/example.com"
#+END_SRC
Then tangling should work as expected. You'd be surprised how long it
took me to notice the colons :). One good way to solve these sorts of
issues is using the built in templates, e.g., type "<s" at the beginning
of a line and then press TAB.
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte/
prev parent reply other threads:[~2012-01-28 1:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-27 18:07 Tangling text files dlc
2012-01-27 18:13 ` Ian Barton
2012-01-28 1:43 ` Eric Schulte [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871uqka9f0.fsf@gmx.com \
--to=eric.schulte@gmx.com \
--cc=dlc@coateconnection.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).