diff options
Diffstat (limited to '')
-rw-r--r-- | emacs.d/snippets/text-mode/scala-mode/act | 10 | ||||
-rw-r--r-- | emacs.d/snippets/text-mode/scala-mode/act.arg | 10 | ||||
-rw-r--r-- | emacs.d/snippets/text-mode/scala-mode/actor | 10 |
3 files changed, 30 insertions, 0 deletions
diff --git a/emacs.d/snippets/text-mode/scala-mode/act b/emacs.d/snippets/text-mode/scala-mode/act new file mode 100644 index 0000000..fce52fc --- /dev/null +++ b/emacs.d/snippets/text-mode/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/snippets/text-mode/scala-mode/act.arg b/emacs.d/snippets/text-mode/scala-mode/act.arg new file mode 100644 index 0000000..fc6df9e --- /dev/null +++ b/emacs.d/snippets/text-mode/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/snippets/text-mode/scala-mode/actor b/emacs.d/snippets/text-mode/scala-mode/actor new file mode 100644 index 0000000..d38a183 --- /dev/null +++ b/emacs.d/snippets/text-mode/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 |