First commit.
This commit is contained in:
8
snippets/kotlin-mode/class
Normal file
8
snippets/kotlin-mode/class
Normal file
@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: class
|
||||
# key: class
|
||||
# --
|
||||
class ${1:name}${2:($3)}${4: : $5}${6: {
|
||||
$0
|
||||
}}
|
8
snippets/kotlin-mode/file_class
Normal file
8
snippets/kotlin-mode/file_class
Normal file
@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: file_class
|
||||
# key: file_class
|
||||
# --
|
||||
class `(f-base buffer-file-name)`${1:($2)}${3: {
|
||||
$0
|
||||
}}
|
8
snippets/kotlin-mode/forin
Normal file
8
snippets/kotlin-mode/forin
Normal file
@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: for (key in iterable) { ... }
|
||||
# key: forin
|
||||
# --
|
||||
for (${1:key} in ${2:iterable}) {
|
||||
`%`$0
|
||||
}
|
8
snippets/kotlin-mode/fun
Normal file
8
snippets/kotlin-mode/fun
Normal file
@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: fun
|
||||
# key: fun
|
||||
# --
|
||||
fun ${1:name}($2)${3:: ${4:Unit}} {
|
||||
${0:TODO('Not yet implemented')}
|
||||
}
|
8
snippets/kotlin-mode/if
Normal file
8
snippets/kotlin-mode/if
Normal file
@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: if
|
||||
# key: if
|
||||
# --
|
||||
if (${1:true}) {
|
||||
$0
|
||||
}
|
10
snippets/kotlin-mode/ife
Normal file
10
snippets/kotlin-mode/ife
Normal file
@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: ife
|
||||
# key: ife
|
||||
# --
|
||||
if (${1:true}) {
|
||||
`%`$2
|
||||
} else {
|
||||
$0
|
||||
}
|
8
snippets/kotlin-mode/interface
Normal file
8
snippets/kotlin-mode/interface
Normal file
@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: interface
|
||||
# key: interface
|
||||
# --
|
||||
interface ${1:name} {
|
||||
$0
|
||||
}
|
8
snippets/kotlin-mode/main
Normal file
8
snippets/kotlin-mode/main
Normal file
@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: main
|
||||
# key: main
|
||||
# --
|
||||
fun main(args: Array<String>) {
|
||||
$0
|
||||
}
|
6
snippets/kotlin-mode/todo
Normal file
6
snippets/kotlin-mode/todo
Normal file
@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: todo
|
||||
# key: todo
|
||||
# --
|
||||
TODO('Not yet implemented')
|
6
snippets/kotlin-mode/val
Normal file
6
snippets/kotlin-mode/val
Normal file
@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: val
|
||||
# key: val
|
||||
# --
|
||||
val ${1:name}: ${2:Int}
|
6
snippets/kotlin-mode/val=
Normal file
6
snippets/kotlin-mode/val=
Normal file
@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: val=
|
||||
# key: val=
|
||||
# --
|
||||
val ${1:name}${2:: ${3:Int}} = `%`$0
|
6
snippets/kotlin-mode/var
Normal file
6
snippets/kotlin-mode/var
Normal file
@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: var
|
||||
# key: var
|
||||
# --
|
||||
var ${1:variable}: ${2:Int}
|
6
snippets/kotlin-mode/var=
Normal file
6
snippets/kotlin-mode/var=
Normal file
@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: var=
|
||||
# key: var=
|
||||
# --
|
||||
var ${1:variable}${2:: ${3:Int}} = `%`$0
|
8
snippets/kotlin-mode/while
Normal file
8
snippets/kotlin-mode/while
Normal file
@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# contributor: Seong Yong-ju
|
||||
# name: while
|
||||
# key: while
|
||||
# --
|
||||
while ($true) {
|
||||
$0
|
||||
}
|
Reference in New Issue
Block a user