diff options
Diffstat (limited to '')
-rw-r--r-- | emacs.d/snippets/text-mode/scala-mode/def.arg-ret | 4 | ||||
-rw-r--r-- | emacs.d/snippets/text-mode/scala-mode/def.arg-ret-body | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/emacs.d/snippets/text-mode/scala-mode/def.arg-ret b/emacs.d/snippets/text-mode/scala-mode/def.arg-ret new file mode 100644 index 0000000..dddb9ce --- /dev/null +++ b/emacs.d/snippets/text-mode/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/snippets/text-mode/scala-mode/def.arg-ret-body b/emacs.d/snippets/text-mode/scala-mode/def.arg-ret-body new file mode 100644 index 0000000..862f7fd --- /dev/null +++ b/emacs.d/snippets/text-mode/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 |