문제

I would like to have src code blocks be eval'd when a .org is opened in emacs. It would be even better if I could somehow tag specific src code blocks to identify which blocks to eval on document opening.

Any existing techniques for this ?

도움이 되었습니까?

해결책

There is no built-in support for this, especially given that it could pose a security risk.
You could add org-babel-execute-buffer to your org-mode-hook, or if you want to only run some blocks, you could write a custom function which uses org-babel-map-src-blocks and add that to the Org-mode hook.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top