Aloha Alan, This can be achieved with noweb references.
Something like this: #+name: user-host-a #+HEADERS: :tangle user-host-a.el :noweb tangle #+BEGIN_SRC emacs-lisp <<initial-frame>> #+END_SRC #+name: user-host-b #+HEADERS: :tangle user-host-b.el :noweb tangle #+BEGIN_SRC emacs-lisp <<initial-frame>> #+END_SRC #+name: initial-frame #+BEGIN_SRC emacs-lisp (setq initial-frame-alist '((width . 80) (height . 38))) #+END_SRC hth, Tom Alan Lue <alan....@gmail.com> writes: > 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. > > > -- Thomas S. Dye http://www.tsdye.com