summaryrefslogtreecommitdiff
path: root/snippets
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-05-28 23:04:03 -0400
committerKyle Meyer <kyle@kyleam.com>2014-05-28 23:04:03 -0400
commit26aed39612309256ad3ed74289c1edde4c429d6c (patch)
tree20f497c4eafb0a1cc401acee9f50cb87af610161 /snippets
parent67fb702912a6f7fd8566857d4e722331c1da2fc1 (diff)
downloademacs.d-26aed39612309256ad3ed74289c1edde4c429d6c.tar.gz
Snippet to insert current file name
Diffstat (limited to 'snippets')
-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