From 8b802b0358b0a9c61ec90de21bc4b97c589c13c1 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Fri, 1 Jan 2021 00:00:30 +0000 Subject: [PATCH] Disable Org source block evaluation prompt --- config.org | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index 2eff557..2afecdb 100644 --- a/config.org +++ b/config.org @@ -123,9 +123,9 @@ needs to be set up to install them if they aren't already. (setq org-src-tab-acts-natively t) #+end_src - =babel= lets us evaluate Org documents containing source blocks! I - currently only use it for this very file, so it's only turned on for - Emacs lisp. + =babel= lets us evaluate Org documents containing source blocks! + I've left the enabling of this for most languages to the section + for that language, but I'll add Emacs Lisp here. #+begin_src emacs-lisp (org-babel-do-load-languages @@ -133,6 +133,16 @@ needs to be set up to install them if they aren't already. '((emacs-lisp . t))) #+end_src + By default trying to execute a source block prompts you, which is + super annoying since I'm realistically not going to try to run any + code from Org documents I haven't written, so that needs + disabling. You can do that by setting [[help:org-confirm-babel-evaluate][org-confirm-babel-evaluate]] to + =nil=. + + #+begin_src emacs-lisp + (setq org-confirm-babel-evaluate nil) + #+end_src + ** Exporting *** HTML