summaryrefslogtreecommitdiff
path: root/snippets
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-01-16 00:42:59 -0500
committerKyle Meyer <kyle@kyleam.com>2016-01-16 00:42:59 -0500
commit5683a910d2ff4cdf8f3ac1b3ebda0ed2e10fed99 (patch)
tree5e5fc869026dd9cabf76bb7cd494aca0dd92d1e8 /snippets
parent05db89ed1a2c36841c2c7b81dd9c16add85ff212 (diff)
downloademacs.d-5683a910d2ff4cdf8f3ac1b3ebda0ed2e10fed99.tar.gz
Make a few snippets work in comments
Diffstat (limited to 'snippets')
-rw-r--r--snippets/text-mode/date1
-rw-r--r--snippets/text-mode/fname1
-rw-r--r--snippets/text-mode/random-num1
3 files changed, 3 insertions, 0 deletions
diff --git a/snippets/text-mode/date b/snippets/text-mode/date
index 14ee4ec..5197155 100644
--- a/snippets/text-mode/date
+++ b/snippets/text-mode/date
@@ -1,4 +1,5 @@
# -*- mode: snippet -*-
# key: date
+# condition: 'force-in-comment
# --
`(format-time-string "%Y-%m-%d")`$0 \ No newline at end of file
diff --git a/snippets/text-mode/fname b/snippets/text-mode/fname
index e5ca8ad..f80d053 100644
--- a/snippets/text-mode/fname
+++ b/snippets/text-mode/fname
@@ -1,4 +1,5 @@
# -*- mode: snippet -*-
# key: fname
+# condition: 'force-in-comment
# --
`(insert (file-name-nondirectory (buffer-file-name)))` $0 \ No newline at end of file
diff --git a/snippets/text-mode/random-num b/snippets/text-mode/random-num
index 2ef8c60..49aa627 100644
--- a/snippets/text-mode/random-num
+++ b/snippets/text-mode/random-num
@@ -1,5 +1,6 @@
# -*- mode: snippet -*-
# name: random number
# key: rnum
+# condition: 'force-in-comment
# --
`(random 4294967295)`$0 \ No newline at end of file