mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
~/.atomicity/{*.js,*.coffee,twilight.coffee}
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user