diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-24 23:29:38 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-24 23:29:38 +0200 |
commit | 7a6bb0f05e349068b0a89514f1da33d6d7de30a9 (patch) | |
tree | c202b81dfaf524e71e881c15aa509c45445a64b3 /emacs.d/lisp/yasnippet/snippets/scala-mode | |
parent | 66b95ab46d870f41c12c489eb21c9c82846d6112 (diff) | |
download | dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.tar.gz dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.tar.xz dotfiles-7a6bb0f05e349068b0a89514f1da33d6d7de30a9.zip |
emacs.d/lisp/yasnippet: added yasnippet
Diffstat (limited to '')
97 files changed, 528 insertions, 0 deletions
diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/.yas-parents b/emacs.d/lisp/yasnippet/snippets/scala-mode/.yas-parents new file mode 100644 index 0000000..eed5b44 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/act b/emacs.d/lisp/yasnippet/snippets/scala-mode/act new file mode 100644 index 0000000..fce52fc --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/act @@ -0,0 +1,10 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def act = { ..} +# -- +def act = { + loop { + react { + $0 + } + } +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/act.arg b/emacs.d/lisp/yasnippet/snippets/scala-mode/act.arg new file mode 100644 index 0000000..fc6df9e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/act.arg @@ -0,0 +1,10 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def act(arg: T) = { ..} +# -- +def act(${1:arg}: ${2:type}) = { + loop { + react { + $0 + } + } +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/actor b/emacs.d/lisp/yasnippet/snippets/scala-mode/actor new file mode 100644 index 0000000..d38a183 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/actor @@ -0,0 +1,10 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val a = actor { ..} +# -- +val a = actor { + loop { + react { + $0 + } + } +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ano b/emacs.d/lisp/yasnippet/snippets/scala-mode/ano new file mode 100644 index 0000000..b949801 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ano @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : (args) => ... +# -- +($1) => ${2:body} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/app b/emacs.d/lisp/yasnippet/snippets/scala-mode/app new file mode 100644 index 0000000..b89bab9 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/app @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : object name extends Application +# -- +object ${1:name} extends Application { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.new new file mode 100644 index 0000000..e3297ca --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : Array[T](..) +# -- +Array[${1:value}](${2:args}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.val-new b/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.val-new new file mode 100644 index 0000000..4de4720 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/arr.val-new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val a = Array[T](..) +# -- +val ${1:arr} = Array[${2:value}](${3:args}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/asof b/emacs.d/lisp/yasnippet/snippets/scala-mode/asof new file mode 100644 index 0000000..3b2b209 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/asof @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : asInstanceOf[T] +# -- +asInstanceOf[${1:type}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ass b/emacs.d/lisp/yasnippet/snippets/scala-mode/ass new file mode 100644 index 0000000..653dcef --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ass @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : assert(x === y) +# -- +assert(${1:x} === ${2:y}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ass.true b/emacs.d/lisp/yasnippet/snippets/scala-mode/ass.true new file mode 100644 index 0000000..923c518 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ass.true @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : assert(true) +# -- +assert(true) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/at.author b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.author new file mode 100644 index 0000000..82fe4cc --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.author @@ -0,0 +1,4 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : @author name +# -- +@author ${1:name} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/at.param b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.param new file mode 100644 index 0000000..72b6e79 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.param @@ -0,0 +1,4 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : @param name description +# -- +@param ${1:name} ${2:description} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/at.return b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.return new file mode 100644 index 0000000..9c3f41c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.return @@ -0,0 +1,4 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : @return description +# -- +@return ${1:description} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/at.version b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.version new file mode 100644 index 0000000..1158ce2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/at.version @@ -0,0 +1,4 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : @version number +# -- +@version ${1:0.1} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/bang b/emacs.d/lisp/yasnippet/snippets/scala-mode/bang new file mode 100644 index 0000000..a547da8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/bang @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : actor ! message +# -- +${1:actor} ! ${2:message} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/case b/emacs.d/lisp/yasnippet/snippets/scala-mode/case new file mode 100644 index 0000000..13d6aec --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/case @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : case pattern => +# -- +case ${1:pattern} => $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/case.match-all b/emacs.d/lisp/yasnippet/snippets/scala-mode/case.match-all new file mode 100644 index 0000000..028bf5f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/case.match-all @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : case _ => +# -- +case _ => $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cast b/emacs.d/lisp/yasnippet/snippets/scala-mode/cast new file mode 100644 index 0000000..3b2b209 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cast @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : asInstanceOf[T] +# -- +asInstanceOf[${1:type}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cc b/emacs.d/lisp/yasnippet/snippets/scala-mode/cc new file mode 100644 index 0000000..7ed1142 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cc @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : case class T(arg: A) +# -- +case class ${1:name}(${2:arg}: ${3:type}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cl b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl new file mode 100644 index 0000000..1fd712c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : class T { .. } +# -- +class ${1:name} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs new file mode 100644 index 0000000..402dec7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : abstract class T { .. } +# -- +abstract class ${1:name} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs-arg b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs-arg new file mode 100644 index 0000000..fe29524 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.abs-arg @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : abstract class T(args) { .. } +# -- +abstract class ${1:name}(${2:args}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.arg b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.arg new file mode 100644 index 0000000..f82460f --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cl.arg @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : class T(args) { .. } +# -- +class ${1:name}(${2:args}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/clof b/emacs.d/lisp/yasnippet/snippets/scala-mode/clof new file mode 100644 index 0000000..955726c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/clof @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : classOf[T] +# -- +classOf[${1:type}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/co b/emacs.d/lisp/yasnippet/snippets/scala-mode/co new file mode 100644 index 0000000..75b1f3b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/co @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : case object T +# -- +case object ${1:name} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cons b/emacs.d/lisp/yasnippet/snippets/scala-mode/cons new file mode 100644 index 0000000..a48e4ff --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cons @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : element1 :: element2 +# -- +${1:element1} :: ${2:element2} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/cons.nil b/emacs.d/lisp/yasnippet/snippets/scala-mode/cons.nil new file mode 100644 index 0000000..c288f93 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/cons.nil @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : element1 :: Nil +# -- +${1:element1} :: Nil $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg new file mode 100644 index 0000000..7765bbf --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f(arg: T) = ... +# -- +def ${1:name}(${2:args}) = $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-body b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-body new file mode 100644 index 0000000..e6e278e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-body @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f(arg: T) = {...} +# -- +def ${1:name}(${2:args}) = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret new file mode 100644 index 0000000..dddb9ce --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f(arg: T): R = ... +# -- +def ${1:name}(${2:args}): ${3:Unit} = $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret-body b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret-body new file mode 100644 index 0000000..862f7fd --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.arg-ret-body @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f(arg: T): R = {...} +# -- +def ${1:name}(${2:args}): ${3:Unit} = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.body b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.body new file mode 100644 index 0000000..858908c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.body @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f = {...} +# -- +def ${1:name} = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret new file mode 100644 index 0000000..e5483fb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f: R = ... +# -- +def ${1:name}: ${2:Unit} = $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret-body b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret-body new file mode 100644 index 0000000..f342e04 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.ret-body @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f: R = {...} +# -- +def ${1:name}: ${3:Unit} = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/def.simple b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.simple new file mode 100644 index 0000000..4814c73 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/def.simple @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : def f = ... +# -- +def ${1:name} = $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.class b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.class new file mode 100644 index 0000000..60442f1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.class @@ -0,0 +1,8 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** cls/trt/obj name */ +# -- +/** + * `(scala-mode-find-clstrtobj-name-doc)` + * ${1:description} + * $0 + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.def b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.def new file mode 100644 index 0000000..8a3d614 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.def @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** method name */ +# -- +/** + * `(scala-mode-def-and-args-doc)` + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file new file mode 100644 index 0000000..7da4289 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file @@ -0,0 +1,9 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** file name */ +# -- +/** + * `(scala-mode-file-doc)` + * $0 + * @author ${1:name} + * @version ${2:0.1} + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala new file mode 100644 index 0000000..6719348 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala @@ -0,0 +1,16 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** scala file */ +# -- +/* __ *\ +** ________ ___ / / ___ Scala $3 ** +** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")` , LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ +/** + * $0 + * @author ${1:name} + * @version ${2:0.1} + * $Id$ + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala-api b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala-api new file mode 100644 index 0000000..4a762f5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.file-scala-api @@ -0,0 +1,16 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** scala api file */ +# -- +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2005-`(format-time-string "%Y")`, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ +/** + * $0 + * @author ${1:name} + * @version ${2:0.1} + * $Id$ + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.scaladoc b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.scaladoc new file mode 100644 index 0000000..038428c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/doc.scaladoc @@ -0,0 +1,7 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : /** ... */ +# -- +/** + * ${1:description} + * $0 + */
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/expect b/emacs.d/lisp/yasnippet/snippets/scala-mode/expect new file mode 100644 index 0000000..94c742c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/expect @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : expect(value) { ..} +# -- +expect(${1:reply}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ext b/emacs.d/lisp/yasnippet/snippets/scala-mode/ext new file mode 100644 index 0000000..e256317 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ext @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : extends T +# -- +extends $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/for.extract b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.extract new file mode 100644 index 0000000..60f1155 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.extract @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : x <- xs +# -- +${1:x} <- ${2:xs}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/for.if b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.if new file mode 100644 index 0000000..f44c544 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.if @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : for (x <- xs if guard) { ... } +# -- +for (${1:x} <- ${2:xs} if ${3:guard}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/for.loop b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.loop new file mode 100644 index 0000000..050d5e8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.loop @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : for (x <- xs) { ... } +# -- +for (${1:x} <- ${2:xs}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/for.multi b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.multi new file mode 100644 index 0000000..c512067 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/for.multi @@ -0,0 +1,9 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : for {x <- xs \ y <- ys} { yield } +# -- +for { + ${1:x} <- ${2:xs} + ${3:x} <- ${4:xs} +} { + yield $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/foreach b/emacs.d/lisp/yasnippet/snippets/scala-mode/foreach new file mode 100644 index 0000000..cafdd00 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/foreach @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : foreach(x => ..) +# -- +foreach(${1:x} => ${2:body}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.new new file mode 100644 index 0000000..dd564a0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : new HashMap[K, V] +# -- +new HashMap[${1:key}, ${2:value}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.val-new b/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.val-new new file mode 100644 index 0000000..2f4a3c2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/hmap.val-new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val m = new HashMap[K, V] +# -- +val ${1:m} = new HashMap[${2:key}, ${3:value}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.new new file mode 100644 index 0000000..d1be3ee --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : new HashSet[K] +# -- +new HashSet[${1:key}] $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.val-new b/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.val-new new file mode 100644 index 0000000..ba792a2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/hset.val-new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val m = new HashSet[K] +# -- +val ${1:m} = new HashSet[${2:key}] $0
\ No newline at end of file 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 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/imp b/emacs.d/lisp/yasnippet/snippets/scala-mode/imp new file mode 100644 index 0000000..cf5efa1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/imp @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : import .. +# -- +import $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/intercept b/emacs.d/lisp/yasnippet/snippets/scala-mode/intercept new file mode 100644 index 0000000..4725eaa --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/intercept @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : intercept(classOf[T]) { ..} +# -- +intercept(classOf[${1:Exception]}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/isof b/emacs.d/lisp/yasnippet/snippets/scala-mode/isof new file mode 100644 index 0000000..a3538c8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/isof @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : isInstanceOf[T] +# -- +isInstanceOf[${1:type}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.new new file mode 100644 index 0000000..7a28e61 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : List(..) +# -- +List(${1:args}, ${2:args}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.val-new b/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.val-new new file mode 100644 index 0000000..37138f0 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ls.val-new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val l = List(..) +# -- +val ${1:l} = List(${2:args}, ${3:args}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/main b/emacs.d/lisp/yasnippet/snippets/scala-mode/main new file mode 100644 index 0000000..ad314b3 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/main @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name: def main(args: Array[String]) = { ... } +# -- +def main(args: Array[String]) = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/map b/emacs.d/lisp/yasnippet/snippets/scala-mode/map new file mode 100644 index 0000000..17322a5 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/map @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : map(x => ..) +# -- +map(${1:x} => ${2:body}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/map.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/map.new new file mode 100644 index 0000000..21c95fb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/map.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : Map(key -> value) +# -- +Map(${1:key} -> ${2:value}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/match b/emacs.d/lisp/yasnippet/snippets/scala-mode/match new file mode 100644 index 0000000..e85fac1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/match @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : cc match { .. } +# -- +${1:cc} match { + case ${2:pattern} => $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/match.can b/emacs.d/lisp/yasnippet/snippets/scala-mode/match.can new file mode 100644 index 0000000..77d475b --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/match.can @@ -0,0 +1,11 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : can match { case Full(res) => .. } +# -- +${1:option} match { + case Full(res) => $0 + + case Empty => + + case Failure(msg, _, _) => + +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/match.option b/emacs.d/lisp/yasnippet/snippets/scala-mode/match.option new file mode 100644 index 0000000..5b098f1 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/match.option @@ -0,0 +1,8 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : option match { case None => .. } +# -- +${1:option} match { + case None => $0 + case Some(res) => + +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/mix b/emacs.d/lisp/yasnippet/snippets/scala-mode/mix new file mode 100644 index 0000000..5261e32 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/mix @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : trait T { .. } +# -- +trait ${1:name} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/ob b/emacs.d/lisp/yasnippet/snippets/scala-mode/ob new file mode 100644 index 0000000..efbc82e --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/ob @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : object name extends T +# -- +object ${1:name} extends ${2:type} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pac b/emacs.d/lisp/yasnippet/snippets/scala-mode/pac new file mode 100644 index 0000000..ed32216 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pac @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : package .. +# -- +package $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.newline b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.newline new file mode 100644 index 0000000..77088cb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.newline @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : println(..) +# -- +println(${1:obj}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.simple b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.simple new file mode 100644 index 0000000..3a73f9d --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.simple @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : print(..) +# -- +print(${1:obj}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.string b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.string new file mode 100644 index 0000000..9c06ef7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.string @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : println("..") +# -- +println("${1:msg}") $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.trace b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.trace new file mode 100644 index 0000000..9a0579c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pr.trace @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : println("obj: " + obj) +# -- +println("${1:obj}: " + ${1:obj}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pri b/emacs.d/lisp/yasnippet/snippets/scala-mode/pri new file mode 100644 index 0000000..643ef2c --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pri @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : private +# -- +private $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pri.param b/emacs.d/lisp/yasnippet/snippets/scala-mode/pri.param new file mode 100644 index 0000000..e53638a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pri.param @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : private[this] +# -- +private[${1:this}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pro b/emacs.d/lisp/yasnippet/snippets/scala-mode/pro new file mode 100644 index 0000000..e4b7b59 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pro @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : protected +# -- +protected $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/pro.param b/emacs.d/lisp/yasnippet/snippets/scala-mode/pro.param new file mode 100644 index 0000000..712b050 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/pro.param @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : protected[this] +# -- +protected[${1:this}] $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/suite b/emacs.d/lisp/yasnippet/snippets/scala-mode/suite new file mode 100644 index 0000000..a65cea7 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/suite @@ -0,0 +1,8 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : class T extends Suite { .. } +# -- +import org.scalatest._ + +class ${1:name} extends Suite { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/test b/emacs.d/lisp/yasnippet/snippets/scala-mode/test new file mode 100644 index 0000000..c4d13f6 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/test @@ -0,0 +1,7 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : @Test def testX = ... +# -- +//@Test +def test${1:name} = { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/throw b/emacs.d/lisp/yasnippet/snippets/scala-mode/throw new file mode 100644 index 0000000..f9a4932 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/throw @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : throw new Exception +# -- +throw new ${1:Exception}(${2:msg}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tr b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr new file mode 100644 index 0000000..68d8162 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : trait T { .. } +# -- +trait ${1:name} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext new file mode 100644 index 0000000..2b82154 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : trait T extends C { .. } +# -- +trait ${1:name} extends ${2:class} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext-with b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext-with new file mode 100644 index 0000000..8edb409 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.ext-with @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : trait T1 extends C with T2 { .. } +# -- +trait ${1:name} extends ${2:class} with ${3:trait} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.with b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.with new file mode 100644 index 0000000..19801eb --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tr.with @@ -0,0 +1,6 @@ +#Author : Anders Bach Nielsen <andersbach.nielsen@epfl.ch> +#name : trait T1 with T2 { .. } +# -- +trait ${1:name} with ${2:trait} { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/try b/emacs.d/lisp/yasnippet/snippets/scala-mode/try new file mode 100644 index 0000000..0c33f10 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/try @@ -0,0 +1,9 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : try { .. } catch { case e => ..} +# -- +try { + $0 +} catch { + case ${1:e}: ${2:Exception} => + ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n} +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/try.catch-finally b/emacs.d/lisp/yasnippet/snippets/scala-mode/try.catch-finally new file mode 100644 index 0000000..f146a20 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/try.catch-finally @@ -0,0 +1,11 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : try { .. } catch { case e => ..} finally { ..} +# -- +try { + $0 +} catch { + case ${1:e}: ${2:Exception} => + ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n} +} finally { + +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/try.finally b/emacs.d/lisp/yasnippet/snippets/scala-mode/try.finally new file mode 100644 index 0000000..63625f2 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/try.finally @@ -0,0 +1,8 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : try { .. } finally { .. } +# -- +try { + +} finally { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.arrow b/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.arrow new file mode 100644 index 0000000..4e7ad69 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.arrow @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : element1 -> element2 +# -- +${1:element1} -> ${2:element2} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.paren b/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.paren new file mode 100644 index 0000000..4bff202 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/tup.paren @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : (element1, element2) +# -- +(${1:element1}, ${2:element2}) $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/val b/emacs.d/lisp/yasnippet/snippets/scala-mode/val new file mode 100644 index 0000000..3067cd4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/val @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val name = .. +# -- +val ${1:name} = ${2:obj} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/val.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/val.new new file mode 100644 index 0000000..35a0c6a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/val.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val name = new .. +# -- +val ${1:name} = new ${2:obj} $0
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/val.ret b/emacs.d/lisp/yasnippet/snippets/scala-mode/val.ret new file mode 100644 index 0000000..4bf4f10 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/val.ret @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : val name: T = .. +# -- +val ${1:name}: ${2:T} = ${3:obj} $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/var b/emacs.d/lisp/yasnippet/snippets/scala-mode/var new file mode 100644 index 0000000..662d6c8 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/var @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : var name = .. +# -- +var ${1:name} = ${2:obj} $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/var.new b/emacs.d/lisp/yasnippet/snippets/scala-mode/var.new new file mode 100644 index 0000000..d681c4a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/var.new @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : var name = new .. +# -- +var ${1:name} = new ${2:obj} $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/var.ret b/emacs.d/lisp/yasnippet/snippets/scala-mode/var.ret new file mode 100644 index 0000000..9d0ac3a --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/var.ret @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : var name: T = .. +# -- +var ${1:name}: ${2:T} = ${3:obj} $0 diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/whi b/emacs.d/lisp/yasnippet/snippets/scala-mode/whi new file mode 100644 index 0000000..082c139 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/whi @@ -0,0 +1,6 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : while(cond) { .. } +# -- +while (${1:condition}) { + $0 +}
\ No newline at end of file diff --git a/emacs.d/lisp/yasnippet/snippets/scala-mode/with b/emacs.d/lisp/yasnippet/snippets/scala-mode/with new file mode 100644 index 0000000..6bd94e4 --- /dev/null +++ b/emacs.d/lisp/yasnippet/snippets/scala-mode/with @@ -0,0 +1,4 @@ +#Author : Jonas Bonèr <jonas@jonasboner.com> +#name : with T +# -- +with $0
\ No newline at end of file |