Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
494 B

4 years ago
  1. # -*- mode: snippet -*-
  2. # name: slot
  3. # key: slot
  4. # --
  5. (${1:name} :initarg :${1:$(yas/substr yas-text "[^: ]*")}
  6. :initform (error ":${1:$(yas/substr yas-text "[^: ]*")} must be specified")
  7. ;; :accessor ${1:$(yas/substr yas-text "[^: ]*")}
  8. :reader ${1:$(yas/substr yas-text "[^: ]*")}-changed
  9. :writer set-${1:$(yas/substr yas-text "[^: ]*")}
  10. :type
  11. :allocation ${3::class :instance}
  12. :documentation "${2:about-slot}")
  13. $0