Last active
April 21, 2021 20:29
-
-
Save bogobogo/d7c873ebd1f6c7b02a811251cdc90ce7 to your computer and use it in GitHub Desktop.
lisp.json
This file contains 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
{ | |
"common lisp let": { | |
"prefix": "llet", | |
"body": [ | |
"(let ((${1:var}))", | |
" ${2:body})" | |
], | |
"description": "common lisp let" | |
}, | |
"common lisp if": { | |
"prefix": "iif", | |
"body": [ | |
"(if (${1:condition} )", | |
" (${2:dothis} )", | |
" (${3:elsedothis} )) " | |
], | |
"description": "common lisp if" | |
}, | |
"common lisp defun": { | |
"prefix": "ddefun", | |
"body": [ | |
"(defun ${1:function name} (${2:vars})", | |
" ${3:body}) " | |
], | |
"description": "common lisp defun" | |
}, | |
"common lisp and": { | |
"prefix": "aand", | |
"body": [ | |
"(and (${1:cond1})", | |
" (${2:cond2}))" | |
], | |
"description": "common lisp and" | |
}, | |
"common lisp dotimes": { | |
"prefix": "ddotimes", | |
"body": [ | |
"(dotimes (${1:var} ${2:times} ${3:optionalwhendone})", | |
" ${4:body})" | |
], | |
"description": "common lisp dotimes" | |
}, | |
"common lisp or": { | |
"prefix": "oor", | |
"body": [ | |
"(or (${1:this})", | |
" (${2:that}))" | |
], | |
"description": "common lisp or" | |
}, | |
"common lisp conditional": { | |
"prefix": "ccond", | |
"body": [ | |
"(cond ((${1:this}) ${2:that})", | |
" ((${3:this}) ${4:that})", | |
" ((${5:this}) ${6:that}))" | |
], | |
"description": "common lisp conditional" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kwccoin This is lisp snippets for VSCode