Re: [O] Tangling to Multiple Files

2012-10-28 Thread Alan Lue
Thanks Eric, I didn't know that you could pass lisp code as header arguments. It looks like it'll be best to conditionally tangle. :tangle (if (string-match "myhost" system-name) "yes" "no") Eric Schulte writes: > Alan Lue writes: > >> Hi, how does one tangle a single code block to multiple f

Re: [O] Tangling to Multiple Files

2012-10-28 Thread Eric Schulte
Alan Lue 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)

Re: [O] Tangling to Multiple Files

2012-10-28 Thread Thomas S. Dye
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 <> #+END_SRC #+name: user-host-b #+HEADERS: :tangle user-host-b.el :noweb tangle #+BEGIN_SRC emacs-lisp <> #+END_SRC #+name: i

[O] Tangling to Multiple Files

2012-10-28 Thread Alan Lue
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 p