summaryrefslogtreecommitdiff
path: root/.emacs.d/mysnippets/text-mode/scala-mode
diff options
context:
space:
mode:
authorSimeon Simeonov2013-09-19 22:27:58 +0200
committerSimeon Simeonov2013-09-19 22:27:58 +0200
commit7bf6712498ad2618bee7bf5b3866fb6da0772339 (patch)
treefd4d959c0f1679f2abf5663399d68df0a06472de /.emacs.d/mysnippets/text-mode/scala-mode
parentb045e27c545d4027811637193632ec3ea5ef7858 (diff)
All snippets imported, init file polished
Diffstat (limited to '.emacs.d/mysnippets/text-mode/scala-mode')
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/act10
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/act.arg10
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/actor10
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/ano4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/app6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/arr.new4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/arr.val-new4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/asof4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/ass4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/ass.true4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/at.author4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/at.param4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/at.return4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/at.version4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/bang4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/case4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/case.match-all4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/cast4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/cc4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/cl6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/cl.abs6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/cl.abs-arg6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/cl.arg6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/clof4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/co4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/cons4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/cons.nil4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/def.arg4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/def.arg-body6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/def.arg-ret4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/def.arg-ret-body6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/def.body6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/def.ret4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/def.ret-body6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/def.simple4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/doc.class8
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/doc.def6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/doc.file9
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/doc.file-scala16
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/doc.file-scala-api16
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/doc.scaladoc7
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/expect6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/ext4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/for.extract4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/for.if6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/for.loop6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/for.multi9
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/foreach4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/hmap.new4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/hmap.val-new4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/hset.new4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/hset.val-new4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/if6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/if.else8
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/imp4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/intercept6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/isof4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/ls.new4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/ls.val-new4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/main6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/map4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/map.new4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/match6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/match.can11
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/match.option8
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/mix6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/ob4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/pac4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/pr.newline4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/pr.simple4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/pr.string4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/pr.trace4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/pri4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/pri.param4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/pro4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/pro.param4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/suite8
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/test7
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/throw4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/tr6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/tr.ext6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/tr.ext-with6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/tr.with6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/try9
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/try.catch-finally11
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/try.finally8
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/tup.arrow4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/tup.paren4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/val4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/val.new4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/val.ret4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/var4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/var.new4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/var.ret4
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/whi6
-rw-r--r--.emacs.d/mysnippets/text-mode/scala-mode/with4
96 files changed, 527 insertions, 0 deletions
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/act b/.emacs.d/mysnippets/text-mode/scala-mode/act
new file mode 100644
index 0000000..fce52fc
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/act
@@ -0,0 +1,10 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : def act = { ..}
3# --
4def act = {
5 loop {
6 react {
7 $0
8 }
9 }
10} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/act.arg b/.emacs.d/mysnippets/text-mode/scala-mode/act.arg
new file mode 100644
index 0000000..fc6df9e
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/act.arg
@@ -0,0 +1,10 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : def act(arg: T) = { ..}
3# --
4def act(${1:arg}: ${2:type}) = {
5 loop {
6 react {
7 $0
8 }
9 }
10} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/actor b/.emacs.d/mysnippets/text-mode/scala-mode/actor
new file mode 100644
index 0000000..d38a183
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/actor
@@ -0,0 +1,10 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : val a = actor { ..}
3# --
4val a = actor {
5 loop {
6 react {
7 $0
8 }
9 }
10} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/ano b/.emacs.d/mysnippets/text-mode/scala-mode/ano
new file mode 100644
index 0000000..b949801
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/ano
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : (args) => ...
3# --
4($1) => ${2:body} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/app b/.emacs.d/mysnippets/text-mode/scala-mode/app
new file mode 100644
index 0000000..b89bab9
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/app
@@ -0,0 +1,6 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : object name extends Application
3# --
4object ${1:name} extends Application {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/arr.new b/.emacs.d/mysnippets/text-mode/scala-mode/arr.new
new file mode 100644
index 0000000..e3297ca
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/arr.new
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : Array[T](..)
3# --
4Array[${1:value}](${2:args}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/arr.val-new b/.emacs.d/mysnippets/text-mode/scala-mode/arr.val-new
new file mode 100644
index 0000000..4de4720
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/arr.val-new
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : val a = Array[T](..)
3# --
4val ${1:arr} = Array[${2:value}](${3:args}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/asof b/.emacs.d/mysnippets/text-mode/scala-mode/asof
new file mode 100644
index 0000000..3b2b209
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/asof
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : asInstanceOf[T]
3# --
4asInstanceOf[${1:type}] $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/ass b/.emacs.d/mysnippets/text-mode/scala-mode/ass
new file mode 100644
index 0000000..653dcef
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/ass
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : assert(x === y)
3# --
4assert(${1:x} === ${2:y}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/ass.true b/.emacs.d/mysnippets/text-mode/scala-mode/ass.true
new file mode 100644
index 0000000..923c518
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/ass.true
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : assert(true)
3# --
4assert(true) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/at.author b/.emacs.d/mysnippets/text-mode/scala-mode/at.author
new file mode 100644
index 0000000..82fe4cc
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/at.author
@@ -0,0 +1,4 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : @author name
3# --
4@author ${1:name} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/at.param b/.emacs.d/mysnippets/text-mode/scala-mode/at.param
new file mode 100644
index 0000000..72b6e79
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/at.param
@@ -0,0 +1,4 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : @param name description
3# --
4@param ${1:name} ${2:description} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/at.return b/.emacs.d/mysnippets/text-mode/scala-mode/at.return
new file mode 100644
index 0000000..9c3f41c
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/at.return
@@ -0,0 +1,4 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : @return description
3# --
4@return ${1:description} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/at.version b/.emacs.d/mysnippets/text-mode/scala-mode/at.version
new file mode 100644
index 0000000..1158ce2
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/at.version
@@ -0,0 +1,4 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : @version number
3# --
4@version ${1:0.1} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/bang b/.emacs.d/mysnippets/text-mode/scala-mode/bang
new file mode 100644
index 0000000..a547da8
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/bang
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : actor ! message
3# --
4${1:actor} ! ${2:message} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/case b/.emacs.d/mysnippets/text-mode/scala-mode/case
new file mode 100644
index 0000000..13d6aec
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/case
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : case pattern =>
3# --
4case ${1:pattern} => $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/case.match-all b/.emacs.d/mysnippets/text-mode/scala-mode/case.match-all
new file mode 100644
index 0000000..028bf5f
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/case.match-all
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : case _ =>
3# --
4case _ => $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/cast b/.emacs.d/mysnippets/text-mode/scala-mode/cast
new file mode 100644
index 0000000..3b2b209
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/cast
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : asInstanceOf[T]
3# --
4asInstanceOf[${1:type}] $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/cc b/.emacs.d/mysnippets/text-mode/scala-mode/cc
new file mode 100644
index 0000000..7ed1142
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/cc
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : case class T(arg: A)
3# --
4case class ${1:name}(${2:arg}: ${3:type}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/cl b/.emacs.d/mysnippets/text-mode/scala-mode/cl
new file mode 100644
index 0000000..1fd712c
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/cl
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : class T { .. }
3# --
4class ${1:name} {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/cl.abs b/.emacs.d/mysnippets/text-mode/scala-mode/cl.abs
new file mode 100644
index 0000000..402dec7
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/cl.abs
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : abstract class T { .. }
3# --
4abstract class ${1:name} {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/cl.abs-arg b/.emacs.d/mysnippets/text-mode/scala-mode/cl.abs-arg
new file mode 100644
index 0000000..fe29524
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/cl.abs-arg
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : abstract class T(args) { .. }
3# --
4abstract class ${1:name}(${2:args}) {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/cl.arg b/.emacs.d/mysnippets/text-mode/scala-mode/cl.arg
new file mode 100644
index 0000000..f82460f
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/cl.arg
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : class T(args) { .. }
3# --
4class ${1:name}(${2:args}) {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/clof b/.emacs.d/mysnippets/text-mode/scala-mode/clof
new file mode 100644
index 0000000..955726c
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/clof
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : classOf[T]
3# --
4classOf[${1:type}] $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/co b/.emacs.d/mysnippets/text-mode/scala-mode/co
new file mode 100644
index 0000000..75b1f3b
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/co
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : case object T
3# --
4case object ${1:name} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/cons b/.emacs.d/mysnippets/text-mode/scala-mode/cons
new file mode 100644
index 0000000..a48e4ff
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/cons
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : element1 :: element2
3# --
4${1:element1} :: ${2:element2} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/cons.nil b/.emacs.d/mysnippets/text-mode/scala-mode/cons.nil
new file mode 100644
index 0000000..c288f93
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/cons.nil
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : element1 :: Nil
3# --
4${1:element1} :: Nil $0
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/def.arg b/.emacs.d/mysnippets/text-mode/scala-mode/def.arg
new file mode 100644
index 0000000..7765bbf
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/def.arg
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : def f(arg: T) = ...
3# --
4def ${1:name}(${2:args}) = $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/def.arg-body b/.emacs.d/mysnippets/text-mode/scala-mode/def.arg-body
new file mode 100644
index 0000000..e6e278e
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/def.arg-body
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : def f(arg: T) = {...}
3# --
4def ${1:name}(${2:args}) = {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/def.arg-ret b/.emacs.d/mysnippets/text-mode/scala-mode/def.arg-ret
new file mode 100644
index 0000000..dddb9ce
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/def.arg-ret
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : def f(arg: T): R = ...
3# --
4def ${1:name}(${2:args}): ${3:Unit} = $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/def.arg-ret-body b/.emacs.d/mysnippets/text-mode/scala-mode/def.arg-ret-body
new file mode 100644
index 0000000..862f7fd
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/def.arg-ret-body
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : def f(arg: T): R = {...}
3# --
4def ${1:name}(${2:args}): ${3:Unit} = {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/def.body b/.emacs.d/mysnippets/text-mode/scala-mode/def.body
new file mode 100644
index 0000000..858908c
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/def.body
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : def f = {...}
3# --
4def ${1:name} = {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/def.ret b/.emacs.d/mysnippets/text-mode/scala-mode/def.ret
new file mode 100644
index 0000000..e5483fb
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/def.ret
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : def f: R = ...
3# --
4def ${1:name}: ${2:Unit} = $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/def.ret-body b/.emacs.d/mysnippets/text-mode/scala-mode/def.ret-body
new file mode 100644
index 0000000..f342e04
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/def.ret-body
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : def f: R = {...}
3# --
4def ${1:name}: ${3:Unit} = {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/def.simple b/.emacs.d/mysnippets/text-mode/scala-mode/def.simple
new file mode 100644
index 0000000..4814c73
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/def.simple
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : def f = ...
3# --
4def ${1:name} = $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/doc.class b/.emacs.d/mysnippets/text-mode/scala-mode/doc.class
new file mode 100644
index 0000000..60442f1
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/doc.class
@@ -0,0 +1,8 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : /** cls/trt/obj name */
3# --
4/**
5 * `(scala-mode-find-clstrtobj-name-doc)`
6 * ${1:description}
7 * $0
8 */ \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/doc.def b/.emacs.d/mysnippets/text-mode/scala-mode/doc.def
new file mode 100644
index 0000000..8a3d614
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/doc.def
@@ -0,0 +1,6 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : /** method name */
3# --
4/**
5 * `(scala-mode-def-and-args-doc)`
6 */ \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/doc.file b/.emacs.d/mysnippets/text-mode/scala-mode/doc.file
new file mode 100644
index 0000000..7da4289
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/doc.file
@@ -0,0 +1,9 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : /** file name */
3# --
4/**
5 * `(scala-mode-file-doc)`
6 * $0
7 * @author ${1:name}
8 * @version ${2:0.1}
9 */ \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/doc.file-scala b/.emacs.d/mysnippets/text-mode/scala-mode/doc.file-scala
new file mode 100644
index 0000000..6719348
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/doc.file-scala
@@ -0,0 +1,16 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : /** scala file */
3# --
4/* __ *\
5** ________ ___ / / ___ Scala $3 **
6** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")` , LAMP/EPFL **
7** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
8** /____/\___/_/ |_/____/_/ | | **
9** |/ **
10\* */
11/**
12 * $0
13 * @author ${1:name}
14 * @version ${2:0.1}
15 * $Id$
16 */ \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/doc.file-scala-api b/.emacs.d/mysnippets/text-mode/scala-mode/doc.file-scala-api
new file mode 100644
index 0000000..4a762f5
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/doc.file-scala-api
@@ -0,0 +1,16 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : /** scala api file */
3# --
4/* __ *\
5** ________ ___ / / ___ Scala API **
6** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")`, LAMP/EPFL **
7** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
8** /____/\___/_/ |_/____/_/ | | **
9** |/ **
10\* */
11/**
12 * $0
13 * @author ${1:name}
14 * @version ${2:0.1}
15 * $Id$
16 */ \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/doc.scaladoc b/.emacs.d/mysnippets/text-mode/scala-mode/doc.scaladoc
new file mode 100644
index 0000000..038428c
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/doc.scaladoc
@@ -0,0 +1,7 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : /** ... */
3# --
4/**
5 * ${1:description}
6 * $0
7 */ \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/expect b/.emacs.d/mysnippets/text-mode/scala-mode/expect
new file mode 100644
index 0000000..94c742c
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/expect
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : expect(value) { ..}
3# --
4expect(${1:reply}) {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/ext b/.emacs.d/mysnippets/text-mode/scala-mode/ext
new file mode 100644
index 0000000..e256317
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/ext
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : extends T
3# --
4extends $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/for.extract b/.emacs.d/mysnippets/text-mode/scala-mode/for.extract
new file mode 100644
index 0000000..60f1155
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/for.extract
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : x <- xs
3# --
4${1:x} <- ${2:xs} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/for.if b/.emacs.d/mysnippets/text-mode/scala-mode/for.if
new file mode 100644
index 0000000..f44c544
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/for.if
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : for (x <- xs if guard) { ... }
3# --
4for (${1:x} <- ${2:xs} if ${3:guard}) {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/for.loop b/.emacs.d/mysnippets/text-mode/scala-mode/for.loop
new file mode 100644
index 0000000..050d5e8
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/for.loop
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : for (x <- xs) { ... }
3# --
4for (${1:x} <- ${2:xs}) {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/for.multi b/.emacs.d/mysnippets/text-mode/scala-mode/for.multi
new file mode 100644
index 0000000..c512067
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/for.multi
@@ -0,0 +1,9 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : for {x <- xs \ y <- ys} { yield }
3# --
4for {
5 ${1:x} <- ${2:xs}
6 ${3:x} <- ${4:xs}
7} {
8 yield $0
9} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/foreach b/.emacs.d/mysnippets/text-mode/scala-mode/foreach
new file mode 100644
index 0000000..cafdd00
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/foreach
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : foreach(x => ..)
3# --
4foreach(${1:x} => ${2:body}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/hmap.new b/.emacs.d/mysnippets/text-mode/scala-mode/hmap.new
new file mode 100644
index 0000000..dd564a0
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/hmap.new
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : new HashMap[K, V]
3# --
4new HashMap[${1:key}, ${2:value}] $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/hmap.val-new b/.emacs.d/mysnippets/text-mode/scala-mode/hmap.val-new
new file mode 100644
index 0000000..2f4a3c2
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/hmap.val-new
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : val m = new HashMap[K, V]
3# --
4val ${1:m} = new HashMap[${2:key}, ${3:value}] $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/hset.new b/.emacs.d/mysnippets/text-mode/scala-mode/hset.new
new file mode 100644
index 0000000..d1be3ee
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/hset.new
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : new HashSet[K]
3# --
4new HashSet[${1:key}] $0
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/hset.val-new b/.emacs.d/mysnippets/text-mode/scala-mode/hset.val-new
new file mode 100644
index 0000000..ba792a2
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/hset.val-new
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : val m = new HashSet[K]
3# --
4val ${1:m} = new HashSet[${2:key}] $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/if b/.emacs.d/mysnippets/text-mode/scala-mode/if
new file mode 100644
index 0000000..24891c0
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/if
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : if (cond) { .. }
3# --
4if (${1:condition}) {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/if.else b/.emacs.d/mysnippets/text-mode/scala-mode/if.else
new file mode 100644
index 0000000..ebff471
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/if.else
@@ -0,0 +1,8 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : if (cond) { .. } else { .. }
3# --
4if (${1:condition}) {
5 $2
6} else {
7 $0
8} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/imp b/.emacs.d/mysnippets/text-mode/scala-mode/imp
new file mode 100644
index 0000000..cf5efa1
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/imp
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : import ..
3# --
4import $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/intercept b/.emacs.d/mysnippets/text-mode/scala-mode/intercept
new file mode 100644
index 0000000..4725eaa
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/intercept
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : intercept(classOf[T]) { ..}
3# --
4intercept(classOf[${1:Exception]}) {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/isof b/.emacs.d/mysnippets/text-mode/scala-mode/isof
new file mode 100644
index 0000000..a3538c8
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/isof
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : isInstanceOf[T]
3# --
4isInstanceOf[${1:type}] $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/ls.new b/.emacs.d/mysnippets/text-mode/scala-mode/ls.new
new file mode 100644
index 0000000..7a28e61
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/ls.new
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : List(..)
3# --
4List(${1:args}, ${2:args}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/ls.val-new b/.emacs.d/mysnippets/text-mode/scala-mode/ls.val-new
new file mode 100644
index 0000000..37138f0
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/ls.val-new
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : val l = List(..)
3# --
4val ${1:l} = List(${2:args}, ${3:args}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/main b/.emacs.d/mysnippets/text-mode/scala-mode/main
new file mode 100644
index 0000000..ad314b3
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/main
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name: def main(args: Array[String]) = { ... }
3# --
4def main(args: Array[String]) = {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/map b/.emacs.d/mysnippets/text-mode/scala-mode/map
new file mode 100644
index 0000000..17322a5
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/map
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : map(x => ..)
3# --
4map(${1:x} => ${2:body}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/map.new b/.emacs.d/mysnippets/text-mode/scala-mode/map.new
new file mode 100644
index 0000000..21c95fb
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/map.new
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : Map(key -> value)
3# --
4Map(${1:key} -> ${2:value}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/match b/.emacs.d/mysnippets/text-mode/scala-mode/match
new file mode 100644
index 0000000..e85fac1
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/match
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : cc match { .. }
3# --
4${1:cc} match {
5 case ${2:pattern} => $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/match.can b/.emacs.d/mysnippets/text-mode/scala-mode/match.can
new file mode 100644
index 0000000..77d475b
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/match.can
@@ -0,0 +1,11 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : can match { case Full(res) => .. }
3# --
4${1:option} match {
5 case Full(res) => $0
6
7 case Empty =>
8
9 case Failure(msg, _, _) =>
10
11} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/match.option b/.emacs.d/mysnippets/text-mode/scala-mode/match.option
new file mode 100644
index 0000000..5b098f1
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/match.option
@@ -0,0 +1,8 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : option match { case None => .. }
3# --
4${1:option} match {
5 case None => $0
6 case Some(res) =>
7
8} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/mix b/.emacs.d/mysnippets/text-mode/scala-mode/mix
new file mode 100644
index 0000000..5261e32
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/mix
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : trait T { .. }
3# --
4trait ${1:name} {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/ob b/.emacs.d/mysnippets/text-mode/scala-mode/ob
new file mode 100644
index 0000000..efbc82e
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/ob
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : object name extends T
3# --
4object ${1:name} extends ${2:type} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/pac b/.emacs.d/mysnippets/text-mode/scala-mode/pac
new file mode 100644
index 0000000..ed32216
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/pac
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : package ..
3# --
4package $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/pr.newline b/.emacs.d/mysnippets/text-mode/scala-mode/pr.newline
new file mode 100644
index 0000000..77088cb
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/pr.newline
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : println(..)
3# --
4println(${1:obj}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/pr.simple b/.emacs.d/mysnippets/text-mode/scala-mode/pr.simple
new file mode 100644
index 0000000..3a73f9d
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/pr.simple
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : print(..)
3# --
4print(${1:obj}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/pr.string b/.emacs.d/mysnippets/text-mode/scala-mode/pr.string
new file mode 100644
index 0000000..9c06ef7
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/pr.string
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : println("..")
3# --
4println("${1:msg}") $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/pr.trace b/.emacs.d/mysnippets/text-mode/scala-mode/pr.trace
new file mode 100644
index 0000000..9a0579c
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/pr.trace
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : println("obj: " + obj)
3# --
4println("${1:obj}: " + ${1:obj}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/pri b/.emacs.d/mysnippets/text-mode/scala-mode/pri
new file mode 100644
index 0000000..643ef2c
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/pri
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : private
3# --
4private $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/pri.param b/.emacs.d/mysnippets/text-mode/scala-mode/pri.param
new file mode 100644
index 0000000..e53638a
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/pri.param
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : private[this]
3# --
4private[${1:this}] $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/pro b/.emacs.d/mysnippets/text-mode/scala-mode/pro
new file mode 100644
index 0000000..e4b7b59
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/pro
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : protected
3# --
4protected $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/pro.param b/.emacs.d/mysnippets/text-mode/scala-mode/pro.param
new file mode 100644
index 0000000..712b050
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/pro.param
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : protected[this]
3# --
4protected[${1:this}] $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/suite b/.emacs.d/mysnippets/text-mode/scala-mode/suite
new file mode 100644
index 0000000..a65cea7
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/suite
@@ -0,0 +1,8 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : class T extends Suite { .. }
3# --
4import org.scalatest._
5
6class ${1:name} extends Suite {
7 $0
8} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/test b/.emacs.d/mysnippets/text-mode/scala-mode/test
new file mode 100644
index 0000000..c4d13f6
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/test
@@ -0,0 +1,7 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : @Test def testX = ...
3# --
4//@Test
5def test${1:name} = {
6 $0
7} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/throw b/.emacs.d/mysnippets/text-mode/scala-mode/throw
new file mode 100644
index 0000000..f9a4932
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/throw
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : throw new Exception
3# --
4throw new ${1:Exception}(${2:msg}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/tr b/.emacs.d/mysnippets/text-mode/scala-mode/tr
new file mode 100644
index 0000000..68d8162
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/tr
@@ -0,0 +1,6 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : trait T { .. }
3# --
4trait ${1:name} {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/tr.ext b/.emacs.d/mysnippets/text-mode/scala-mode/tr.ext
new file mode 100644
index 0000000..2b82154
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/tr.ext
@@ -0,0 +1,6 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : trait T extends C { .. }
3# --
4trait ${1:name} extends ${2:class} {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/tr.ext-with b/.emacs.d/mysnippets/text-mode/scala-mode/tr.ext-with
new file mode 100644
index 0000000..8edb409
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/tr.ext-with
@@ -0,0 +1,6 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : trait T1 extends C with T2 { .. }
3# --
4trait ${1:name} extends ${2:class} with ${3:trait} {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/tr.with b/.emacs.d/mysnippets/text-mode/scala-mode/tr.with
new file mode 100644
index 0000000..19801eb
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/tr.with
@@ -0,0 +1,6 @@
1#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch>
2#name : trait T1 with T2 { .. }
3# --
4trait ${1:name} with ${2:trait} {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/try b/.emacs.d/mysnippets/text-mode/scala-mode/try
new file mode 100644
index 0000000..0c33f10
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/try
@@ -0,0 +1,9 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : try { .. } catch { case e => ..}
3# --
4try {
5 $0
6} catch {
7 case ${1:e}: ${2:Exception} =>
8 ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n}
9} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/try.catch-finally b/.emacs.d/mysnippets/text-mode/scala-mode/try.catch-finally
new file mode 100644
index 0000000..f146a20
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/try.catch-finally
@@ -0,0 +1,11 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : try { .. } catch { case e => ..} finally { ..}
3# --
4try {
5 $0
6} catch {
7 case ${1:e}: ${2:Exception} =>
8 ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n}
9} finally {
10
11} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/try.finally b/.emacs.d/mysnippets/text-mode/scala-mode/try.finally
new file mode 100644
index 0000000..63625f2
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/try.finally
@@ -0,0 +1,8 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : try { .. } finally { .. }
3# --
4try {
5
6} finally {
7 $0
8} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/tup.arrow b/.emacs.d/mysnippets/text-mode/scala-mode/tup.arrow
new file mode 100644
index 0000000..4e7ad69
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/tup.arrow
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : element1 -> element2
3# --
4${1:element1} -> ${2:element2} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/tup.paren b/.emacs.d/mysnippets/text-mode/scala-mode/tup.paren
new file mode 100644
index 0000000..4bff202
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/tup.paren
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : (element1, element2)
3# --
4(${1:element1}, ${2:element2}) $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/val b/.emacs.d/mysnippets/text-mode/scala-mode/val
new file mode 100644
index 0000000..3067cd4
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/val
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : val name = ..
3# --
4val ${1:name} = ${2:obj} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/val.new b/.emacs.d/mysnippets/text-mode/scala-mode/val.new
new file mode 100644
index 0000000..35a0c6a
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/val.new
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : val name = new ..
3# --
4val ${1:name} = new ${2:obj} $0 \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/val.ret b/.emacs.d/mysnippets/text-mode/scala-mode/val.ret
new file mode 100644
index 0000000..4bf4f10
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/val.ret
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : val name: T = ..
3# --
4val ${1:name}: ${2:T} = ${3:obj} $0
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/var b/.emacs.d/mysnippets/text-mode/scala-mode/var
new file mode 100644
index 0000000..662d6c8
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/var
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : var name = ..
3# --
4var ${1:name} = ${2:obj} $0
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/var.new b/.emacs.d/mysnippets/text-mode/scala-mode/var.new
new file mode 100644
index 0000000..d681c4a
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/var.new
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : var name = new ..
3# --
4var ${1:name} = new ${2:obj} $0
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/var.ret b/.emacs.d/mysnippets/text-mode/scala-mode/var.ret
new file mode 100644
index 0000000..9d0ac3a
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/var.ret
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : var name: T = ..
3# --
4var ${1:name}: ${2:T} = ${3:obj} $0
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/whi b/.emacs.d/mysnippets/text-mode/scala-mode/whi
new file mode 100644
index 0000000..082c139
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/whi
@@ -0,0 +1,6 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : while(cond) { .. }
3# --
4while (${1:condition}) {
5 $0
6} \ No newline at end of file
diff --git a/.emacs.d/mysnippets/text-mode/scala-mode/with b/.emacs.d/mysnippets/text-mode/scala-mode/with
new file mode 100644
index 0000000..6bd94e4
--- /dev/null
+++ b/.emacs.d/mysnippets/text-mode/scala-mode/with
@@ -0,0 +1,4 @@
1#Author : Jonas Bonèr <jonas@jonasboner.com>
2#name : with T
3# --
4with $0 \ No newline at end of file