From: Dan Davison <davison@stats.ox.ac.uk>
To: Erik Iverson <eriki@ccbr.umn.edu>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: TAB character in source code blocks
Date: Thu, 09 Sep 2010 13:15:10 -0400 [thread overview]
Message-ID: <87d3smbzz5.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <4C88F494.1080509@ccbr.umn.edu> (Erik Iverson's message of "Thu, 09 Sep 2010 09:52:04 -0500")
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
prev parent reply other threads:[~2010-09-09 17:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 14:52 TAB character in source code blocks Erik Iverson
2010-09-09 17:15 ` Dan Davison [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=87d3smbzz5.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=eriki@ccbr.umn.edu \
/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).