a0a2843a7d29

vim: lisp snippets
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 12 Nov 2010 19:01:04 -0500
parents 80e8bc166d00
children d426a1494ef9
branches/tags (none)
files vim/snippets/lisp.snippets

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vim/snippets/lisp.snippets	Fri Nov 12 19:01:04 2010 -0500
@@ -0,0 +1,33 @@
+snippet defp
+	(defparameter ${1:name} ${2:value})${3}
+snippet defv
+	(defvar ${1:name} ${2:value})${3}
+snippet defun
+	(defun ${1:name} (${2:arguments})
+	  ${3:body})
+snippet let
+	(let ((${1:name} ${2:value})${3: others})
+	  ${4:body})
+snippet flet
+	(flet ((${1:name} (${2:arguments})
+	         ${3:body})${4: others})
+	  ${5:body})
+snippet labels
+	(labels ((${1:name} (${2:arguments})
+	           ${3:body})${4: others})
+	  ${5:body})
+snippet when
+	(when ${1:condition}
+	      ${2:body})
+snippet unless
+	(unless ${1:condition}
+	        ${2:body})
+snippet cond
+	(cond (${1:condition} ${2:body})
+		  ${3:others})
+snippet case
+	(case ${1:item}
+		 (${2:option} ${3:body})
+		 ${4:others})
+snippet mem
+	(member ${1:item} ${2:list})