format org-babel snippets for defuns