summaryrefslogtreecommitdiff
path: root/snippets/text-mode
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/text-mode')
-rw-r--r--snippets/text-mode/fname4
1 files changed, 4 insertions, 0 deletions
diff --git a/snippets/text-mode/fname b/snippets/text-mode/fname
new file mode 100644
index 0000000..40a8f2f
--- /dev/null
+++ b/snippets/text-mode/fname
@@ -0,0 +1,4 @@
+# -*- mode: snippet -*-
+# key: fname
+# --
+`(insert (file-name-nondirectory (buffer-file-name)))` $0