From e276088bdd99c42130eed49cfe0ff727d5ebc12c Mon Sep 17 00:00:00 2001 From: contrapunctus Date: Wed, 26 Oct 2022 01:15:23 +0530 Subject: [PATCH] Remove parens from :documentation expansion This makes it useful for slot definitions as well. I can always insert (|) quickly thanks to my kmonad config, so expanding to (:documentation "...") forms remain nearly as easy as before. --- templates | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates b/templates index fd0d84f..4a5cbe1 100644 --- a/templates +++ b/templates @@ -28,6 +28,7 @@ slime-repl-mode lisp-mode (s "(%" (s slot) " :initarg :" (s slot) n> " :accessor " (s slot) > ")") +(d ":documentation \"" (s "docstring") "\"") (dg "(defgeneric " p " (" "))") (qq "(ql:quickload '(" (p "packages") "))") (dp "(defpackage :" (p "name") @@ -39,7 +40,6 @@ slime-repl-mode lisp-mode ;; print debugging (pd "(format *debug-io* \"" (p "string") "\"" q ")") (im "(:import-from :" (s "package") " #:" (s "symbol") ")") -(d "(:documentation \"" (s "docstring") "\")") (di "(:default-initargs " (s "initarg") ")") (qu "(ql:update-all-dists)" n> "(ql:update-client)")