Hi,
I’ve been converting many of my configuration files to org-mode to better
document them (examples:
https://github.com/zzamboni/dot_emacs/blob/master/init.org
<https://github.com/zzamboni/dot_emacs/blob/master/init.org>,
https://github.com/zzamboni/dot_elvish/blob/master/rc.org
<https://github.com/zzamboni/dot_elvish/blob/master/rc.org>). Usually I have a
line like the following at the top of each org file:
#+PROPERTY: header-args:emacs-lisp :tangle init.el
So that all the code blocks in the file are, by default, tangled to the
corresponding config file. I was wondering if it might be possible to avoid
hardcoding the output file (“init.el” in this example) and instead derive it
from the source filename (“init.org” in this case). I’ve looked a bit through
the manual and although I found the {{{input-file}}} macro, I couldn’t get it
to work.
Thanks for any help,
—Diego