emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jarmo Hurri <jarmo.hurri@iki.fi>
To: emacs-orgmode@gnu.org
Subject: Babel: tangling questions
Date: Tue, 03 Dec 2019 11:53:31 +0200	[thread overview]
Message-ID: <87immxenvo.fsf@iki.fi> (raw)


Greetings.

I am trying to tangle code to a specific directory.

1. I want to tangle to the default filename (derived from name of org
   file and programming language). However, the :tangle header argument
   only takes either "yes" or "filename." If the value is "yes", then
   the filename is deduced automatically. How can I specify a tangling
   directory and still have the default filename?

   There was a related question on stack exchange, but it did not use
   the default filename:
   https://emacs.stackexchange.com/questions/41806/org-babel-set-root-dir-for-tangled-files

2. The question above implies a feature request: third possible value
   for :tangle, a directory. In this case code would be tangled into the
   specified directory into a file with default filename. Any support?

3. Is it possible to tangle automatically on (every) export? I always
   export, but I might forget to tangle, in which case export and tangle
   would be out of sync.

   Someone asked about this a while ago on stack exchange, but maybe
   things have changed:
   https://emacs.stackexchange.com/questions/24645/exporting-and-tangling-simultaneously-in-org-mode

Thanks a bunch in advance.

Jarmo

             reply	other threads:[~2019-12-03  9:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-03  9:53 Jarmo Hurri [this message]
2019-12-03 13:28 ` Diego Zamboni
2019-12-03 15:22   ` Jarmo Hurri

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=87immxenvo.fsf@iki.fi \
    --to=jarmo.hurri@iki.fi \
    --cc=emacs-orgmode@gnu.org \
    /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).