joostkremers / pandoc-mode

An Emacs minor mode for interacting with Pandoc.
https://joostkremers.github.io/pandoc-mode/
178 stars 14 forks source link

Can I export every file to an "output" subdirectory? #88

Open RyanMcCarl opened 5 years ago

RyanMcCarl commented 5 years ago

I am having trouble setting the output directory. The output-dir variable does not seem to be available in the Customize (custom.el) options.

Preferred outcome: What I would ideally like is to export to a subdirectory of the buffer file's directory called "output": BUFFER_DIR/output. That may entail creating the directory if it doesn't exist. I tried putting (output-dir "output") in the global settings file, but that didn't seem to do anything.

Alternative: Alternatively, I would like to set a single global output directory (e.g. ~/Dropbox/output). I need to keep the exported files separate from the source files.

Thank you, Ryan

joostkremers commented 5 years ago

Settings files, including global settings files, are always dependent on the output format. This also applies to the output-dir setting. So you'll have to make sure you set the output dir for the correct output format.