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

前端 未结 4 473
耶瑟儿~
耶瑟儿~ 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:13

    After placing the following:

    # -*- org-export-use-babel: nil;-*-

    at the top of the file, and executing C-c C-c, It didn't work for me. The variable's value is not set accordingly.

    But the following:

    #+BIND: org-export-use-babel nil
    

    with an application of C-c C-c works as expected.

    I found the answer here: http://joelmccracken.github.io/entries/org-mode-specifying-document-variables-and-keywords/

    There are probably some changes in emacs 26, which I'm using.

提交回复
热议问题