Rainer Thiel writes:

> I have set org-odt-preferred-output-format to docx, which works fine.
> How can I have the intermediate odt-file removed automatically after
> the docx-file is created?

Here's one (lightly tested) option:

    (advice-add :after #'org-odt-convert
                (lambda (&optional in-file &rest _)
                  (when in-file
                    (delete-file in-file)))
                '((name . "org-odt-convert--delete-odt")))

Reply via email to