~/.atomicity/{*.js,*.coffee,twilight.coffee}

This commit is contained in:
Chris Wanstrath
2011-08-23 00:37:31 -07:00
parent 3647c1a9ba
commit 9f250d74ed
2 changed files with 14 additions and 6 deletions

View File

@@ -9,6 +9,20 @@ editor.getSession().setMode new JavaScriptMode
editor.getSession().setUseSoftTabs true
editor.getSession().setTabSize 2
if css = File.read "~/.atomicity/twilight.css"
head = $('head')[0]
style = document.createElement 'style'
rules = document.createTextNode css
style.type = 'text/css'
style.appendChild rules
head.appendChild style
_.map Dir.list("~/.atomicity/"), (path) ->
if /\.js$/.test path
$.getScript path
else if /\.coffee/.test path
eval CoffeeScript.compile File.read path
filename = null
editor.getSession().on 'change', ->
Chrome.setDirty true

View File

@@ -26,11 +26,5 @@
<script src="atomicity.js" type="text/javascript" charset="utf-8"></script>
<style>
.ace-twilight .ace_gutter {
color: #888888;
}
.ace-twilight .ace_scroller {
background: ##1A1A1A;
}
</style>