emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* TAB character in source code blocks
@ 2010-09-09 14:52 Erik Iverson
  2010-09-09 17:15 ` Dan Davison
  0 siblings, 1 reply; 2+ messages in thread
From: Erik Iverson @ 2010-09-09 14:52 UTC (permalink / raw)
  To: emacs-orgmode

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?

Thanks,
Erik

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: TAB character in source code blocks
  2010-09-09 14:52 TAB character in source code blocks Erik Iverson
@ 2010-09-09 17:15 ` Dan Davison
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Davison @ 2010-09-09 17:15 UTC (permalink / raw)
  To: Erik Iverson; +Cc: emacs-orgmode

Erik Iverson <eriki@ccbr.umn.edu> 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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-09 17:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-09 14:52 TAB character in source code blocks Erik Iverson
2010-09-09 17:15 ` Dan Davison

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).