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