Last active
March 31, 2022 10:49
-
-
Save jweaver/97801b7d359c08572c04da6a909129d6 to your computer and use it in GitHub Desktop.
Disable the prompt during org-mode export to execute code blocks for plantuml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Disable every prompt during an org-mode export, when using plantuml. | |
;; Useful when you have multiple UML diagrams in an org doc, and you don't | |
;; want to type 'y' on every export prompt. | |
(defun my-org-confirm-babel-evaluate (lang body) | |
(not (string= lang "plantuml"))) | |
(setq org-confirm-babel-evaluate 'my-org-confirm-babel-evaluate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment