简体   繁体   中英

How to evaluate all code blocks when exporting in emacs org-mode

I have an org-mode document with many different R source code blocks. Whenever I hit Cc Ce 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?

我想这就是你想要的:

(setq org-confirm-babel-evaluate nil)

将以下行放在文件的顶部,这样一旦打开它就会被问到一次,而更安全的非评估默认值对于其他文件仍然是正确的

# -*- org-confirm-babel-evaluate: nil -*-

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM