mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
fix: make-snippet can be a function
This commit is contained in:
parent
0daac695e2
commit
386e84fdde
@ -326,7 +326,7 @@ can be:
|
|||||||
`(defun ,name ()
|
`(defun ,name ()
|
||||||
,(define--snippet-body body)))
|
,(define--snippet-body body)))
|
||||||
|
|
||||||
(cl-defmacro make-snippet (forms)
|
(defun make-snippet (forms)
|
||||||
"Same as `define-snippet', but return an anonymous function."
|
"Same as `define-snippet', but return an anonymous function."
|
||||||
`(lambda () ,(define--snippet-body forms)))
|
`(lambda () ,(define--snippet-body forms)))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user