mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Added several snippets for erlang-mode. Thanks hitesh
This commit is contained in:
parent
59d35739fa
commit
2b6dab409c
5
snippets/text-mode/erlang-mode/exp
Normal file
5
snippets/text-mode/erlang-mode/exp
Normal file
@ -0,0 +1,5 @@
|
||||
#name : -export([]).
|
||||
#contributor : hitesh <hitesh.jasani@gmail.com>
|
||||
# --
|
||||
-export([${1:start/0}]).
|
||||
$0
|
5
snippets/text-mode/erlang-mode/imp
Normal file
5
snippets/text-mode/erlang-mode/imp
Normal file
@ -0,0 +1,5 @@
|
||||
#name : -import([]).
|
||||
#contributor : hitesh <hitesh.jasani@gmail.com>
|
||||
# --
|
||||
-import(${1:lists}, [${2:map/2, sum/1}]).
|
||||
$0
|
7
snippets/text-mode/erlang-mode/mod
Normal file
7
snippets/text-mode/erlang-mode/mod
Normal file
@ -0,0 +1,7 @@
|
||||
#name : -module().
|
||||
#contributor : hitesh <hitesh.jasani@gmail.com>
|
||||
# --
|
||||
-module(${1:$(file-name-nondirectory
|
||||
(file-name-sans-extension (buffer-file-name)))}).
|
||||
$0
|
||||
|
Loading…
x
Reference in New Issue
Block a user