This commit is contained in:
2024-04-30 07:08:23 +02:00
commit a711247971
2043 changed files with 16874 additions and 0 deletions

13
snippets/lisp-mode/slot Normal file
View File

@@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# name: slot
# key: slot
# --
(${1:name} :initarg :${1:$(yas/substr yas-text "[^: ]*")}
:initform (error ":${1:$(yas/substr yas-text "[^: ]*")} must be specified")
;; :accessor ${1:$(yas/substr yas-text "[^: ]*")}
:reader ${1:$(yas/substr yas-text "[^: ]*")}-changed
:writer set-${1:$(yas/substr yas-text "[^: ]*")}
:type
:allocation ${3::class :instance}
:documentation "${2:about-slot}")
$0