     @pane.ace.setTheme require "ace/theme/#{@settings.theme}"
     @pane.ace.setShowInvisibles @settings.showInvisibles
     @pane.ace.setPrintMarginColumn @settings.marginColumn
-
-    @show()
-    @setModeForURL @url if @url
-
-    @dirty = false
-    atom.trigger 'editor:open', this
-
-    true
 
   close: ->
     if @dirty

  title: ->
    if @url then _.last @url.split '/' else 'untitled'

  show: ->
    @pane.show()
    @pane.ace.resize()


      return false if not fs.isFile url
      return false if @url

    @url = url
    @show if @url then fs.read @url else ''

    atom.trigger 'editor:open', this

    true

  edit: (code) ->
    @session = new EditSession code
    @session.setValue code
    @session.setUseSoftTabs @settings.softTabs
    @session.setTabSize if @settings.softTabs then @settings.tabSize else 8
