aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tempel-snippets.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/tempel-snippets.el b/tempel-snippets.el
new file mode 100644
index 0000000..cde986b
--- /dev/null
+++ b/tempel-snippets.el
@@ -0,0 +1,6 @@
+fundamental-mode ;; Available everywhere
+
+(today (format-time-string "%Y-%m-%d"))
+(NOW (format-time-string "<%Y-%0m-%0d %a %H:%0M>"))
+(yesterday (format-time-string "<%Y-%0m-%0d %a>" (time-subtract nil (* 24 60 60))))
+(tomorrow (format-time-string "<%Y-%0m-%0d %a>" (time-add nil (* 24 60 60))))