diff options
| author | bard <[email protected]> | 2024-05-17 06:13:51 -0400 |
|---|---|---|
| committer | bard <[email protected]> | 2024-05-17 06:13:51 -0400 |
| commit | 2a53e5e6745032ba30796a8efa03ce791e27b6fb (patch) | |
| tree | 2728246c09073db921e182077d035746248352fa /tempel-snippets.el | |
| parent | 59bb73d87061e380f86ce1f9aff27d4a74bdcf61 (diff) | |
hook and file mode snippets
Diffstat (limited to 'tempel-snippets.el')
| -rw-r--r-- | tempel-snippets.el | 3 |
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) ")") |
