diff --git a/snippets/elixir-mode/wt b/snippets/elixir-mode/wt new file mode 100644 index 0000000..30acd48 --- /dev/null +++ b/snippets/elixir-mode/wt @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Miriam Retka (https://github.com/Auralcat) +# name: wt +# key: wt +# -- +with ${1:{:ok, tuple} <- function(arg)}, do + $0 +end \ No newline at end of file diff --git a/snippets/elixir-mode/wte b/snippets/elixir-mode/wte new file mode 100644 index 0000000..804b586 --- /dev/null +++ b/snippets/elixir-mode/wte @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: Miriam Retka (https://github.com/Auralcat) +# name: wte +# key: wte +# -- +with ${1:{:ok, tuple} <- function(arg)}, do + $2 +else + $0 +end \ No newline at end of file