运行 babel-execute-subtree 中的多个块没有回答是
Run multiple blocks in babel-execute-subtree without answering a yes
在运行通过调用 M-x org-babel-execute-subtree 从 org 模式获取源代码后
我必须用“y”响应每个代码块
如何配置它 运行 默认 'y'
评价
(setq org-confirm-babel-evaluate nil)
如果你真的想一直跳过这一步,你必须将上面的表格添加到你的初始化文件中。
这是变量的文档字符串:
Documentation:
Confirm before evaluation.
Require confirmation before interactively evaluating code
blocks in Org buffers. The default value of this variable is t,
meaning confirmation is required for any code block evaluation.
This variable can be set to nil to inhibit any future
confirmation requests. This variable can also be set to a
function which takes two arguments the language of the code block
and the body of the code block. Such a function should then
return a non-nil value if the user should be prompted for
execution or nil if no prompt is required.
Warning: Disabling confirmation may result in accidental
evaluation of potentially harmful code. It may be advisable
remove code block execution from ‘C-c C-c’ as further protection
against accidental code block evaluation. The
‘org-babel-no-eval-on-ctrl-c-ctrl-c’ variable can be used to
remove code block execution from the ‘C-c C-c’ keybinding.
You can customize this variable.
你至少应该知道这个警告。
在运行通过调用 M-x org-babel-execute-subtree 从 org 模式获取源代码后
我必须用“y”响应每个代码块
如何配置它 运行 默认 'y'
评价
(setq org-confirm-babel-evaluate nil)
如果你真的想一直跳过这一步,你必须将上面的表格添加到你的初始化文件中。
这是变量的文档字符串:
Documentation:
Confirm before evaluation.
Require confirmation before interactively evaluating code blocks in Org buffers. The default value of this variable is t, meaning confirmation is required for any code block evaluation. This variable can be set to nil to inhibit any future confirmation requests. This variable can also be set to a function which takes two arguments the language of the code block and the body of the code block. Such a function should then return a non-nil value if the user should be prompted for execution or nil if no prompt is required.
Warning: Disabling confirmation may result in accidental evaluation of potentially harmful code. It may be advisable remove code block execution from ‘C-c C-c’ as further protection against accidental code block evaluation. The ‘org-babel-no-eval-on-ctrl-c-ctrl-c’ variable can be used to remove code block execution from the ‘C-c C-c’ keybinding.
You can customize this variable.
你至少应该知道这个警告。