aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tempel-snippets.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/tempel-snippets.el b/tempel-snippets.el
index 0924921..7124094 100644
--- a/tempel-snippets.el
+++ b/tempel-snippets.el
@@ -4,9 +4,12 @@ fundamental-mode ;; Available everywhere
(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))))
+(mode "-*- mode: " (s mode) " -*-")
emacs-lisp-mode
(up "(use-package "p n> (s configuration)")")
(key "(define-key " p " (kbd \""p "\") #'"p")")
+
+(hook "(add-hook '"(s hook-name) " #'" (s function-to-add) ")")