Skip to content

Instantly share code, notes, and snippets.

@jackw
Last active December 17, 2015 23:39
Show Gist options
  • Save jackw/5690655 to your computer and use it in GitHub Desktop.
Save jackw/5690655 to your computer and use it in GitHub Desktop.
Got bored of repeating myself. Here's a revealing module pattern sublime text 2 gist.
<snippet>
<content><![CDATA[
var ${1:nameSpace} = function (${2:\$}) {
function init () {
$4
}
return {
init : init
}
}(${3:jQuery});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>revmod</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment