I'm customising my export settings for a particular file using
#+OPTIONS. I want to be able to set the defaults for
org-export-dispatch for this particular file too.
In particular I want
Visible only: On by default (again, for this file only).
The notes that I want to export are not hugely structured, so I don't want to build a sparse tree using particular tags. I just want the currently visible items.
visible-onlyoptions cannot be set through options in the file itself. The simplest thing to do is write a function that specializes
org-export-dispatchto enable the options that you want and use that function for exporting this particular file, instead of using the general dispatcher. Maybe there is a simpler way, but the following is what popped into my head: after you write the specialized function, add a Local variables section to your file and redefine
C-c C-eto call your specialized dispatcher in that section.