summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/text-mode/erlang-mode/mod
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/snippets/text-mode/erlang-mode/mod')
-rw-r--r--emacs.d/snippets/text-mode/erlang-mode/mod6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs.d/snippets/text-mode/erlang-mode/mod b/emacs.d/snippets/text-mode/erlang-mode/mod
new file mode 100644
index 0000000..7275d39
--- /dev/null
+++ b/emacs.d/snippets/text-mode/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