summaryrefslogtreecommitdiffstats
path: root/emacs.d/lisp/yasnippet/snippets/scala-mode/if
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/lisp/yasnippet/snippets/scala-mode/if6
-rw-r--r--emacs.d/lisp/yasnippet/snippets/scala-mode/if.else8
2 files changed, 14 insertions, 0 deletions
diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/if b/emacs.d/lisp/yasnippet/snippets/scala-mode/if
new file mode 100644
index 0000000..24891c0
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/if
@@ -0,0 +1,6 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : if (cond) { .. }
+# --
+if (${1:condition}) {
+ $0
+} \ No newline at end of file
diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/if.else b/emacs.d/lisp/yasnippet/snippets/scala-mode/if.else
new file mode 100644
index 0000000..ebff471
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/if.else
@@ -0,0 +1,8 @@
+#Author : Jonas Bonèr <jonas@jonasboner.com>
+#name : if (cond) { .. } else { .. }
+# --
+if (${1:condition}) {
+ $2
+} else {
+ $0
+} \ No newline at end of file