在emacs组织模式下导出时如何评估所有代码块 [英] How to evaluate all code blocks when exporting in emacs org-mode

查看:54
本文介绍了在emacs组织模式下导出时如何评估所有代码块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 org-mode 文档,其中包含许多不同的R源代码块。每当我点击 C-c C-e 并导出为PDF或HTML时,我都会收到不同的提示,要求评估每个代码块。没什么大不了的,但是现在我必须输入 20次以上。有没有可以自动评估所有代码块的选项?

I have an org-mode document with many different R source code blocks. Whenever I hit C-c C-e and export to PDF or HTML I get a different prompt asking to evaluate each code block. This wasn't a big deal, but now I have to type yes 20+ times. Is there an option to automatically evaluate all the code blocks?

推荐答案

我认为这就是您想要的:

I think this is what you want:

(setq org-confirm-babel-evaluate nil)

这篇关于在emacs组织模式下导出时如何评估所有代码块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆