Compare commits

...

2 Commits

Author SHA1 Message Date
contrapunctus c07b75be77 Add LaTeX, Texinfo, and Org templates 2022-10-16 15:01:28 +05:30
contrapunctus 3dd83b56bd Quit template when reaching arguments
Much of the time, these print debugging calls don't have arguments,
and the argument field just becomes a hassle to delete.
2022-10-16 14:59:58 +05:30
1 changed files with 12 additions and 1 deletions

View File

@ -37,7 +37,7 @@ slime-repl-mode lisp-mode
(ln "(:local-nicknames (:" (p "nickname") " :" (p "package-name") ")" q ")")
(c "#+(or)")
;; print debugging
(pd "(format *debug-io* \"" (p "string") "\" " (p "args") ")")
(pd "(format *debug-io* \"" (p "string") "\"" q ")")
(im "(:import-from :" (s "package") " #:" (s "symbol") ")")
(d "(:documentation \"" (s "docstring") "\")")
(di "(:default-initargs " (s "initarg") ")")
@ -47,3 +47,14 @@ sql-mode
(ct "CREATE TABLE " (s "table") " ("
n " " (s "column") ","
n ");")
latex-mode
(be "\\begin{" (s env) "}" > n> r> "\\end{" (s env) "}")
(e "\\begin{enumerate}\n\\item " r> n> "\\end{enumerate}")
(i "\\begin{itemize}\n\\item " r> n> "\\end{itemize}")
texinfo-mode
(i "@include ")
org-mode
(x "[ ] ")