<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dotemacs/tests/test-org-babel-config.el, branch load-graph-classify-start</title>
<subtitle>My Emacs configuration
</subtitle>
<id>https://git.cjennings.net/dotemacs/atom?h=load-graph-classify-start</id>
<link rel='self' href='https://git.cjennings.net/dotemacs/atom?h=load-graph-classify-start'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/'/>
<updated>2026-05-24T00:51:51+00:00</updated>
<entry>
<title>fix(org-babel): confirm babel evaluation by default, toggle on a key</title>
<updated>2026-05-24T00:51:51+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-24T00:51:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/dotemacs/commit/?id=beb6558a7a7a95e54d7cc510e4832bf645950e51'/>
<id>urn:sha1:beb6558a7a7a95e54d7cc510e4832bf645950e51</id>
<content type='text'>
org-babel-config set org-confirm-babel-evaluate to nil globally, so a source block in any Org file (a cloned repo, a downloaded note, a web clip) ran with no prompt. That's arbitrary code execution on opening the wrong file and hitting C-c C-c.

I set the default to t (confirm) and replaced the old babel-confirm command, which only toggled under a prefix arg, with cj/org-babel-toggle-confirm. It flips confirmation off for the session when I'm in trusted files and back on when I'm done, bound to C-; k.

The C-; k binding is a placeholder. I filed a follow-up to give it a permanent Org-prefixed home.
</content>
</entry>
</feed>
