emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Specifying the tangle filename based on the source filename?
@ 2018-01-28 13:54 Diego Zamboni
  2018-01-28 18:13 ` Jack Henahan
  2018-01-28 20:47 ` Grant Rettke
  0 siblings, 2 replies; 5+ messages in thread
From: Diego Zamboni @ 2018-01-28 13:54 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Diego Zamboni

[-- Attachment #1: Type: text/plain, Size: 915 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 1472 bytes --]

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

end of thread, other threads:[~2018-01-28 21:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-28 13:54 Specifying the tangle filename based on the source filename? Diego Zamboni
2018-01-28 18:13 ` Jack Henahan
2018-01-28 20:15   ` Diego Zamboni
2018-01-28 20:47 ` Grant Rettke
2018-01-28 21:07   ` Diego Zamboni

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