emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: TAB character in source code blocks


From: Dan Davison
Subject: [Orgmode] Re: TAB character in source code blocks
Date: Thu, 09 Sep 2010 13:15:10 -0400
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Erik Iverson <address@hidden> writes:

> Hello,
>
> I'm using org source blocks to write a Makefile.
>
> #+begin_src makefile :tangle Makefile
> target: dependencies
>       command
> #+end_src
>
> At least in GNU make, commands must start with a TAB.
>
> However, after I close the code edit buffer with C-c ',
> the resulting whitespace in the org-mode buffer, and thus
> the tangled Makefile, is spaces and not a tab.
>
> I haven't looked into what's causing this yet, wondering
> if anyone else has come across this already and found
> a solution?

Hi Erik,

(setq org-src-preserve-indentation t) should do it. It does have some
other effects so let us know if you have difficulty separating wanted
and unwanted effects.


Dan

>
> Thanks,
> Erik
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]