This is what I came up with over lunch. I&#x27;m going to try keeping all my dotfiles in one org file. I have an init hook that runs org-bable-tangle to re-export all the dotfiles after saving.<p><pre><code>  ** Meta
     If you place the following code into your emacs init when saving the
     ~&#x2F;.dotfiles.org file the dotfiles will all be exported.

     #+BEGIN_SRC emacs-lisp :tangle yes
       (defun dotfiles-hook ()
         &quot;If the current buffer is &#x27;~&#x2F;.dotfiles.org&#x27; the code-blocks are
       tangled.&quot;
         (when (equal (buffer-file-name)
                      (expand-file-name (concat (getenv &quot;HOME&quot;)
                                        &quot;&#x2F;.dotfiles.org&quot;)))
           (org-babel-tangle)))

       (add-hook &#x27;after-save-hook &#x27;dotfiles-hook)
     #+END_SRC

  ** bashrc
    #+BEGIN_SRC conf :tangle ~&#x2F;.bashrc
      export PATH=$HOME&#x2F;bin:$PATH
    #+END_SRC

  ** tmux
    #+BEGIN_SRC conf :tangle ~&#x2F;.tmux.conf
      unbind C-b
      set -g prefix C-t
      bind C-t send-prefix
    #+END_SRC</code></pre>