[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Help tangling
From: |
Andreas Hilboll |
Subject: |
Re: [O] Help tangling |
Date: |
Wed, 02 Apr 2014 23:10:12 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
On 02.04.2014 23:04, Eric Schulte wrote:
> Andreas Hilboll <address@hidden> writes:
>
>> Hi,
>>
>> I want to write a "SConstruct" file (for SCons, a Python make
>> alternative) in orgmode, using literate programming. So I have a file
>> "SConstruct.org", where I include the code blocks with "#+begin_src ...
>> #+end_src". My question:
>>
>> How can I specify that *all* code blocks shall be tangled into one
>> single file called "SConstruct"?
>>
>> I know I could do this by writing
>>
>> #+begin_src python :tangle SConstruct
>> [...]
>> #+end_src
>>
>> instead of
>>
>> #+begin_src
>> [...]
>> #+end_src
>>
>> but is there some way to define the "python"
>
> no
>
>> and the ":tangle SConstruct"
>
> yes
>
> #+Property: tangle SConstruct
>
Thanks for your feedback, Eric! However, it doesn't seem to work properly.
The first two lines of my file read
#+OPTIONS: toc:4 h:4
#+PROPERTY: tangle SConstruct
and I have several code blocks like
#+begin_src python
[...]
#+end_src
However, when I invoke org-babel-tangle, I get the message "Tangled 0
code blocks from SConstruct.org", and no output file is created.
Have I misunderstood you? What am I doing wrong?
Cheers, Andreas.
>> 'globally' for the whole file?
>>
>> Thanks for helping me orgmode-newbie!
>>
>
> Best,
>
>>
>> -- Andreas.
>>
>
--
-- Andreas.