I have a bunch of org-mode files in a directory structure and would like to export to html using org-publish. Not all of them have the #+SETUPFILE: header, and I'd like to avoid having to add that in to every file.

So how do you add the line

#+SETUPFILE: /path/to/my/setupfile.setup

to every org file when org-publish is invoked (especially when a #+SETUPFILE: header is not already present?)

  • "... I'd like to avoid adding that to every file": Why? If it is needed, why not add it to every file? – NickD Jun 4 at 17:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.