Clojure, don't indent with spaces!

This commit is contained in:
Louis Pilfold 2014-12-13 14:15:50 +00:00
parent 4833a35bec
commit 06b67db1d5

View File

@ -1,75 +1,75 @@
snippet comm snippet comm
(comment (comment
${0} ${0}
) )
snippet condp snippet condp
(condp ${1:pred} ${2:expr} (condp ${1:pred} ${2:expr}
${0}) ${0})
snippet def snippet def
(def ${0}) (def ${0})
snippet defm snippet defm
(defmethod ${1:multifn} "${2:doc-string}" ${3:dispatch-val} [${4:args}] (defmethod ${1:multifn} "${2:doc-string}" ${3:dispatch-val} [${4:args}]
${0}) ${0})
snippet defmm snippet defmm
(defmulti ${1:name} "${2:doc-string}" ${0:dispatch-fn}) (defmulti ${1:name} "${2:doc-string}" ${0:dispatch-fn})
snippet defma snippet defma
(defmacro ${1:name} "${2:doc-string}" ${0:dispatch-fn}) (defmacro ${1:name} "${2:doc-string}" ${0:dispatch-fn})
snippet defn snippet defn
(defn ${1:name} "${2:doc-string}" [${3:arg-list}] (defn ${1:name} "${2:doc-string}" [${3:arg-list}]
${0}) ${0})
snippet defp snippet defp
(defprotocol ${1:name} (defprotocol ${1:name}
${0}) ${0})
snippet defr snippet defr
(defrecord ${1:name} [${2:fields}] (defrecord ${1:name} [${2:fields}]
${3:protocol} ${3:protocol}
${0}) ${0})
snippet deft snippet deft
(deftest ${1:name} (deftest ${1:name}
(is (= ${2:assertion})) (is (= ${2:assertion}))
${0}) ${0})
snippet is snippet is
(is (= ${1} ${0})) (is (= ${1} ${0}))
snippet defty snippet defty
(deftype ${1:Name} [${2:fields}] (deftype ${1:Name} [${2:fields}]
${3:Protocol} ${3:Protocol}
${0}) ${0})
snippet doseq snippet doseq
(doseq [${1:elem} ${2:coll}] (doseq [${1:elem} ${2:coll}]
${0}) ${0})
snippet fn snippet fn
(fn [${1:arg-list}] ${0}) (fn [${1:arg-list}] ${0})
snippet if snippet if
(if ${1:test-expr} (if ${1:test-expr}
${2:then-expr} ${2:then-expr}
${0:else-expr}) ${0:else-expr})
snippet if-let snippet if-let
(if-let [${1:result} ${2:test-expr}] (if-let [${1:result} ${2:test-expr}]
(${3:then-expr} $1) (${3:then-expr} $1)
(${0:else-expr})) (${0:else-expr}))
snippet imp snippet imp
(:import [${1:package}]) (:import [${1:package}])
& {:keys [${1:keys}] :or {${0:defaults}}} & {:keys [${1:keys}] :or {${0:defaults}}}
snippet let snippet let
(let [${1:name} ${2:expr}] (let [${1:name} ${2:expr}]
${0}) ${0})
snippet letfn snippet letfn
(letfn [(${1:name}) [${2:args}] (letfn [(${1:name}) [${2:args}]
${0})]) ${0})])
snippet map snippet map
(map ${1:func} ${0:coll}) (map ${1:func} ${0:coll})
snippet mapl snippet mapl
(map #(${1:lambda}) ${0:coll}) (map #(${1:lambda}) ${0:coll})
snippet met snippet met
(${1:name} [${2:this} ${3:args}] (${1:name} [${2:this} ${3:args}]
${0}) ${0})
snippet ns snippet ns
(ns ${0:name}) (ns ${0:name})
snippet dotimes snippet dotimes
(dotimes [_ 10] (dotimes [_ 10]
(time (time
(dotimes [_ ${1:times}] (dotimes [_ ${1:times}]
${0}))) ${0})))
snippet pmethod snippet pmethod
(${1:name} [${2:this} ${0:args}]) (${1:name} [${2:this} ${0:args}])
snippet refer snippet refer