summaryrefslogtreecommitdiffstats
path: root/emacs.d/lisp/yasnippet/snippets/erlang-mode/mod
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/lisp/yasnippet/snippets/erlang-mode/mod')
-rw-r--r--emacs.d/lisp/yasnippet/snippets/erlang-mode/mod6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs.d/lisp/yasnippet/snippets/erlang-mode/mod b/emacs.d/lisp/yasnippet/snippets/erlang-mode/mod
new file mode 100644
index 0000000..7275d39
--- /dev/null
+++ b/emacs.d/lisp/yasnippet/snippets/erlang-mode/mod
@@ -0,0 +1,6 @@
+#name : -module().
+#contributor : hitesh <hitesh.jasani@gmail.com>
+# --
+-module(${1:`(file-name-nondirectory
+ (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}).
+$0