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.
scope
,body-only
andvisible-only
options cannot be set through options in the file itself. The simplest thing to do is write a function that specializesorg-export-dispatch
to 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 redefineC-c C-e
to call your specialized dispatcher in that section.