emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to remove automatically an intermediate odt-File


From: Kyle Meyer
Subject: Re: how to remove automatically an intermediate odt-File
Date: Sun, 13 Sep 2020 01:14:50 -0400

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

[Prev in Thread] Current Thread [Next in Thread]