         window.smc.editors ?= {}
         window.smc.editors[filename] = editor
 
+        editor.init_autosave()
         return editor
 
     create_opened_file_tab: (filename) =>


        if tab.editor_open()
            # Disconnect from remote session (if relevant), clean up, etc.
            tab.editor().disconnect_from_session?()
            tab.editor().remove?()

        tab.link.remove()
        tab.close_tab?()

            clearInterval(@_autosave_interval); delete @_autosave_interval

        # Use the most recent autosave value.
        autosave = redux.getStore('account').get('autosave')
        if autosave
            save_if_changed = () =>
                if not @editor?.tabs?
