Created
February 19, 2011 09:20
-
-
Save imakado/834958 to your computer and use it in GitHub Desktop.
my "defmethod" yasnippet for cl.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# name : defmethod | |
# group : defmethod | |
# contributor : imakado | |
# -- | |
(defmethod $1 ((${2:this} ${3:`(let ((class-name | |
(save-excursion | |
(and (re-search-backward (rx "(" symbol-start "defclass" (+ space) | |
(group (+ (or (syntax word) | |
(syntax symbol))))) | |
nil t) | |
(match-string-no-properties 1))))) | |
(or class-name ""))`})$0) | |
"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment