Skip to content

Instantly share code, notes, and snippets.

@jweaver
Last active March 31, 2022 10:49
Show Gist options
  • Save jweaver/97801b7d359c08572c04da6a909129d6 to your computer and use it in GitHub Desktop.
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
;; 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