From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Babel: tangling questions Date: Tue, 03 Dec 2019 11:53:31 +0200 Message-ID: <87immxenvo.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51333) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ic4sO-000616-QQ for emacs-orgmode@gnu.org; Tue, 03 Dec 2019 04:53:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ic4sL-0003ha-Hm for emacs-orgmode@gnu.org; Tue, 03 Dec 2019 04:53:47 -0500 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:49400 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ic4sJ-0003f8-Kn for emacs-orgmode@gnu.org; Tue, 03 Dec 2019 04:53:44 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1ic4sE-000GZC-Bl for emacs-orgmode@gnu.org; Tue, 03 Dec 2019 10:53:38 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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