How do I prevent org-mode from executing all of the babel source blocks?

前端 未结 4 475
耶瑟儿~
耶瑟儿~ 2021-02-02 00:26

I have an org file with lots of babel source blocks in it that only need to be re-executed when the code is changed.

How do I prevent org from executing all of the block

4条回答
  •  情深已故
    2021-02-02 01:18

    The variable org-export-babel-evaluate, if set to nil, will prevent any code from being evaluated as part of the export process. This way, only the results inserted by way of manual execution will be exported.

    You can define it, and others, as a file variable by placing the following comment line at the top of your org file:

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

提交回复
热议问题