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

前端 未结 2 766
甜味超标
甜味超标 2021-02-14 03:17

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 t

相关标签:
2条回答
  • 2021-02-14 03:48

    I think this is what you want:

    (setq org-confirm-babel-evaluate nil)
    
    0 讨论(0)
  • 2021-02-14 03:54

    Put the following line at the top of your file, that way you get asked one time upon opening it, and the safer non-evaluating default remains true for other files

    # -*- org-confirm-babel-evaluate: nil -*-
    
    0 讨论(0)
提交回复
热议问题