]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
snippet: added orgmode srcsh
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 8 Jan 2016 14:58:24 +0000 (15:58 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 8 Jan 2016 14:58:24 +0000 (15:58 +0100)
- If you want to reference the output in other src blcoks you need a
  name and maybe caching.

snippets/org-mode/srcsh [new file with mode: 0644]

diff --git a/snippets/org-mode/srcsh b/snippets/org-mode/srcsh
new file mode 100644 (file)
index 0000000..9368314
--- /dev/null
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: srcsh
+# key: <srcsh
+# If you want to reference the output in other src blocks you need a name.
+# --
+${1:#+NAME: $2}
+#+BEGIN_SRC sh :cache ${3:$$(yas-choose-value '("yes" "no"))} :results ${4:$$(yas-choose-value '("table" "list"))}
+$0
+#+END_SRC
\ No newline at end of file