kill the tabs for now. make life easy

This commit is contained in:
Chris Wanstrath 2011-08-27 02:48:42 -07:00
parent 28843b75bb
commit f4528a6d05
2 changed files with 22 additions and 2 deletions

View File

@ -56,9 +56,22 @@
</div>
</body>
<style>
* {
margin: 0;
padding: 0;
}
#editor {
position: absolute;
width: 100%;
height: 100%;
font: 18px Inconsolada, Monaco, Courier;
}
</style>
<script>
var tabs = require('lib/tabs')
tabs.show()
require('lib/atomicity');
</script>
</html>

View File

@ -9,6 +9,8 @@ _ = require 'vendor/underscore'
$ = require 'vendor/jquery'
{CoffeeScript} = require 'vendor/coffee-script'
Chrome.addPane 'main', '<div id="editor"></div>'
editor = ace.edit "editor"
editor.setTheme require "ace/theme/twilight"
JavaScriptMode = require("ace/mode/javascript").Mode
@ -19,6 +21,11 @@ editor.getSession().setUseSoftTabs true
editor.getSession().setTabSize 2
editor.focus()
# fuuuuu, ui bug
setTimeout ->
editor.resize()
, 50
if css = File.read "~/.atomicity/twilight.css"
head = $('head')[0]
style = document.createElement 'style'