]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/yasnippet/snippets/scala-mode/act.arg
Add yasnippet.
[gnu-emacs-elpa] / packages / yasnippet / snippets / scala-mode / act.arg
diff --git a/packages/yasnippet/snippets/scala-mode/act.arg b/packages/yasnippet/snippets/scala-mode/act.arg
new file mode 100644 (file)
index 0000000..45369ab
--- /dev/null
@@ -0,0 +1,11 @@
+# Author: Jonas Bonèr <jonas@jonasboner.com>
+# name: def act(arg: T) = { ..}
+# key: act
+# --
+def act(${1:arg}: ${2:type}) = {
+  loop {
+    react {
+      $0
+    }
+  }
+}
\ No newline at end of file