Skip to content

Instantly share code, notes, and snippets.

@analyticd
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save analyticd/39f686a571116831248d to your computer and use it in GitHub Desktop.
Save analyticd/39f686a571116831248d to your computer and use it in GitHub Desktop.
yasnippet snippet for org-mode babel source blocks (one to rule them all)
# --
#+begin_src ${1:$$(yas-choose-value '("emacs-lisp" "sh" "shell" "mathematica" "lisp" "R" "python" "ocaml" "matlab" "dot" "C" "C++"))} ${2::includes '(${3:<iostream>})} ${4::var ${5:foobnar}=${6:batz}} ${7::file ${8:(org-babel-temp-file "./figure-" ".png")}} :results ${9:$$(yas-choose-value '("silent" "replace" "append" "prepend" "output" "output table" "output scalar" "output file" "output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment