-
Notifications
You must be signed in to change notification settings - Fork 67
/
templates
48 lines (36 loc) · 1.09 KB
/
templates
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
emacs-lisp-mode
(autoload ";;;###autoload")
(let "(let (" p ")" n> r> ")")
(lett "(let* (" p ")" n> r> ")")
fundamental-mode
(now (barrinalo-date-short-with-time))
(Now (barrinalo-date-long-with-time))
(today (barrinalo-date-short))
(Today (barrinalo-date-long))
js-base-mode typescript-ts-base-mode
(c "const " p " = " p ";")
(f "const " p " = (" p ") => " p ";")
(l "console.log(" r ");")
(L "console.log(JSON.stringify(" r ", null, 2));")
org-mode
(q "#+BEGIN_QUOTE" n> r> n "#+END_QUOTE")
(s "#+BEGIN_SRC " (p "emacs-lisp") n> r> n "#+END_SRC")
prog-mode
(note
(if (derived-mode-p 'emacs-lisp-mode 'lisp-data-mode) ";; " comment-start)
"NOTE ")
(todo
(if (derived-mode-p 'emacs-lisp-mode 'lisp-data-mode) ";; " comment-start)
"TODO ")
(warn
(if (derived-mode-p 'emacs-lisp-mode 'lisp-data-mode) ";; " comment-start)
"WARN ")
text-mode
(box "┌─" (make-string (length str) ?─) "─┐" n
"│ " (s str) " │" n
"└─" (make-string (length str) ?─) "─┘" n)
(k "<kbd>" p "</kbd>")
;; Local Variables:
;; mode: lisp-data
;; outline-regexp: "[a-z]"
;; End: