aboutsummaryrefslogtreecommitdiff
path: root/tempel-snippets.el
blob: 71240949bc5124a712d28a478dabbc242f88025d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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))))
(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) ")")