Skip to content

Instantly share code, notes, and snippets.

@bogobogo
Last active April 21, 2021 20:29
Show Gist options
  • Save bogobogo/d7c873ebd1f6c7b02a811251cdc90ce7 to your computer and use it in GitHub Desktop.
Save bogobogo/d7c873ebd1f6c7b02a811251cdc90ce7 to your computer and use it in GitHub Desktop.
lisp.json
{
"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"
}
}
@mvoitko
Copy link

mvoitko commented Apr 21, 2021

@kwccoin This is lisp snippets for VSCode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment