From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Lue Subject: Tangling to Multiple Files Date: Sun, 28 Oct 2012 13:12:54 -0700 Message-ID: <87txtebbjt.fsf@rye.gateway.2wire.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSZEP-0004bc-Ii for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 16:13:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSZEO-0000lT-DZ for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 16:13:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:52502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSZEO-0000lO-6w for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 16:13:12 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TSZEU-0006D0-GZ for emacs-orgmode@gnu.org; Sun, 28 Oct 2012 21:13:18 +0100 Received: from 99-119-21-199.lightspeed.irvnca.sbcglobal.net ([99.119.21.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Oct 2012 21:13:18 +0100 Received: from alan.lue by 99-119-21-199.lightspeed.irvnca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Oct 2012 21:13:18 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, how does one tangle a single code block to multiple files? I thought the following might work, but unfortunately it does not. Set the frame size. #+HEADERS: :tangle user-host-a.el user-host-b.el #+BEGIN_SRC emacs-lisp (setq initial-frame-alist '((width . 80) (height . 38))) #+END_SRC To provide some background, I'm using =org-babel-load-file= in my init.el file to load up my Emacs configuration from an Org fileā€”call it "user.org." I'd like to use just one user.org file across multiple computers, however, meaning I'd like user.org to tangle into user-host-a.el and user-host-b.el, for instance. The configurations are only slightly different, so I'd like to be able to selectively indicate to Org-mode which code blocks to tangle into.