mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix #3175: inhibit save hooks on org-export-to-file
This commit is contained in:
@ -444,6 +444,13 @@ relative to `org-directory', unless it is an absolute path."
|
||||
(mathjax . t)
|
||||
(variable . "revealjs-url=https://revealjs.com"))))
|
||||
|
||||
(defadvice! +org--dont-trigger-save-hooks-on-export-a (orig-fn &rest args)
|
||||
"`org-export-to-file' triggers save hooks, which may inadvertantly change
|
||||
the exported output (i.e. formatters)."
|
||||
:around #'org-export-to-file
|
||||
(let (before-save-hook after-save-hook)
|
||||
(apply orig-fn args)))
|
||||
|
||||
(defadvice! +org--fix-async-export-a (orig-fn &rest args)
|
||||
:around #'org-export-to-file
|
||||
(if (not org-export-in-background)
|
||||
|
Reference in New Issue
Block a user