Disable Org source block evaluation prompt
This commit is contained in:
parent
3f4d3929e3
commit
8b802b0358
16
config.org
16
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user