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 ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no built-in support for this, especially given that it could pose a security risk.
You could add
org-babel-execute-bufferto yourorg-mode-hook, or if you want to only run some blocks, you could write a custom function which usesorg-babel-map-src-blocksand add that to the Org-mode hook.