aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-babel-config.el
Commit message (Collapse)AuthorAgeFilesLines
* refactor(org-babel): move the babel-confirm toggle to the org menuCraig Jennings4 days1-3/+9
| | | | cj/org-babel-toggle-confirm landed on C-; k as a placeholder. It's an org-babel concern, so it now lives on the org menu as C-; O b, and C-; k is free again. The binding registers after org-config loads so a standalone load of this module still works.
* fix(org-babel): confirm babel evaluation by default, toggle on a keyCraig Jennings2026-05-231-0/+35
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.