I currently I have a couple of org-babel shell snippets to package up a build and push it to a server for later usage. This also handily keeps a reference to the last execution of the snippet so I can remember what was last uploaded and when.
I was thinking I could further automate my process by hooking into compilation-finish-functions
to look-up a babel snippet and execute it on successful compilation. What's the best way to organise the babel snippets and call the snippets programmatically? I was wondering if I can use :tags:
or if I can just call up the snippet by #+:NAME
by searching all my org-agenda-files
. I was planning in storing the target babel function in the project's .dir-locals.el
.
It would also be nice to mark a snippet as trusted whilst it was unchanged so I didn't need to confirm every execution.
.dir-locals
has to do with it. – Malabarba Sep 30 '14 at 15:01(invoke-babel-snippet name)
at the end of a compilation. And the.dir-locals.el
would help definename
in that case. – Sigma Sep 30 '14 at 15:08