[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Preserve tabs in tangled babel output
From: |
Roger Mason |
Subject: |
Re: [O] Preserve tabs in tangled babel output |
Date: |
Wed, 11 Mar 2015 13:35:39 -0230 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (berkeley-unix) |
Thank you Charles Berry and John Kitchin for your replies.
John Kitchin <address@hidden> writes:
> I have org-src-preserve-indentation set to t.
>
> Charles C. Berry writes:
>
>> On Wed, 11 Mar 2015, Roger Mason wrote:
>>
>>> Hello,
>>>
>>> This code:
>>>
>>> #+BEGIN_SRC makefile :tangle Makefile
>>> hello: hello.f90
>>> gfortran hello.f90
>>>
>>> execute: hello
>>> ./a.out
>>>
>>> clean:
>>> rm -f a.out *.o
>>> #+END_SRC
>>>
>>> (stolen from John Kitchin) produces a Makefile with spaces instead of
>>> tabs. I created the content in makefile mode, with tabs, but emacs
>>> untabifies the output. How can I prevent this?
>>
>> Use the `-i' results switch:
>>
>> #+BEGIN_SRC makefile -i :tangle Makefile
>>
>> or set `org-src-preserve-indentation' non-nil.
The -i switch did not work for me but setting
org-src-preserve-indentation did.
Thanks again,
Roger