emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [Babel] Prefix for tangled files


From: Eric Schulte
Subject: Re: [Orgmode] [Babel] Prefix for tangled files
Date: Fri, 29 Oct 2010 01:56:21 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Seb,

You could use the `org-babel-post-tangle-hook' to rename all tangled
files behind some common prefix.  Any function on this hook will be
called once per tangled file from within the tangled file, so it could
use the `buffer-file-name' to rename the file.

Best -- Eric

Sébastien Vauban <address@hidden> writes:

> Hello,
>
> Wanting to use Babel as much as possible, writing a lot of scripts that I
> tangle (and eventually share with others), I find that prefixing all tangled
> files shoud be a good habit in order to directly see which files (in dired)
> are the results of a tangling process.
>
> Of course, I can have this habit, but others (and colleagues) may not have it.
>
> Would it make sense to have an Org-Babel variable for such a prefix
> (defaulting to the empty string, and overridable per block, subtree, file,
> language, as for the rest)?
>
> Best regards,
>   Seb



reply via email to

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