Added clojure snippets.

This commit is contained in:
ujihisa 2013-05-27 17:51:16 -07:00
parent 01e2da6e49
commit e91c6af2bb
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,28 @@
snippet defn-doc
abbr defn function "..." [...] ...
options head
(defn ${1:name}
"${2:doc}"
[${3}]
${0})
snippet try
abbr (try ... (catch ...
(try
${1}
(catch ${2:Exception} e ${3:nil}))
snippet ref-set
abbr (dosync (ref-set ...
options head
(dosync
(ref-set ${1:ref} ${2:value}))
# http://tnoda-clojure.tumblr.com/post/24969285880/clojure-scripting
snippet shebang
options head
#^:shebang '[
exec java -cp \`locate clojure- | grep -P "clojure-[\\d\\.]+\\.jar$" | tail -1\` clojure.main "\$0"
]

View File

@ -784,6 +784,9 @@ A: You can use |:NeoSnippetSource| for it.
==============================================================================
CHANGELOG *neosnippet-changelog*
2013-05-27
- Added clojure snippets.
2013-05-21
- Improved neosnippet initialization.