First commit.

This commit is contained in:
kj
2022-03-29 19:21:13 -04:00
commit da8f068975
293 changed files with 3002 additions and 0 deletions

4
snippets/scala-mode/List Normal file
View File

@ -0,0 +1,4 @@
# -*- mode: snippet -*-
# name: List(...)
# --
List(${1:args}) $0

6
snippets/scala-mode/app Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: object ... extends App { ... }
# --
object ${1:name} extends App {
`%`$0
}

4
snippets/scala-mode/case Normal file
View File

@ -0,0 +1,4 @@
# -*- mode: snippet -*-
# name: case ... => ...
# --
case ${1:_} => $0

4
snippets/scala-mode/cons Normal file
View File

@ -0,0 +1,4 @@
# -*- mode: snippet -*-
# name: element1 :: element2
# --
${1:element1} :: ${2:element2} $0

6
snippets/scala-mode/def Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: def fn(args): R = { ... }
# --
def ${1:name}(${2:args}): ${3:Unit} = {
`%`$0
}

6
snippets/scala-mode/if Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: if (...) { ... }
# --
if (${1:condition}) {
`%`$0
}

6
snippets/scala-mode/main Normal file
View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: def main(args: Array[String]) = { ... }
# --
def main(args: Array[String]) = {
`%`$0
}

View File

@ -0,0 +1,4 @@
# -*- mode: snippet -*-
# name : throw new Exception
# --
throw new ${1:Exception}($2) $0

9
snippets/scala-mode/try Normal file
View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: try { ... } catch { case e => ... }
# --
try {
`%`$0
} catch {
case e: ${1:Throwable} =>
${2:// TODO: handle exception}
}