Add defclass snippet, change defgeneric and defmethod keys

This commit is contained in:
contrapunctus 2022-01-06 10:50:50 +05:30
parent c90545730c
commit 6ab8685c3e
3 changed files with 12 additions and 2 deletions

View File

@ -1,6 +1,7 @@
# -*- mode: snippet -*-
# contributor: contrapunctus (tilde.team/~contrapunctus)
# name: cl-defgeneric
# key: defg
# key: dg
# --
(cl-defgeneric ${1:name} (${2:args})
"${3:docstring}"

View File

@ -1,6 +1,7 @@
# -*- mode: snippet -*-
# contributor: contrapunctus (tilde.team/~contrapunctus)
# name: cl-defmethod
# key: defme
# key: dm
# --
(cl-defmethod ${1:name} (${2:args})
$0)

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# contributor: contrapunctus (tilde.team/~contrapunctus)
# name: defclass
# key: dc
# --
(defclass ${1:name} (${2:superclasses})
(${3:slots})
:documentation "${0:docstring}")