       project = editor.project
       buffer = editor.buffer
       file = buffer.file
+      editorElement = atom.views.getView(editor)
 
       editor.onDidSave =>
+        atom.commands.dispatch(editorElement, 'line-ending-selector:convert-to-LF')
         console.log 'Saving: Path - ' + this.formatFilePath(buffer.file.path) + ' Matches? - ' + !!this.formatFilePath(buffer.file.path).match(/\.atom\/code/)
         if @formatFilePath(buffer.file.path).match(/\.atom\/code/)
           if @connectionState == 'closed'

        digest: file.digest,
      },
      buffer: {
        content: window.btoa(unescape(encodeURIComponent(@getText(buffer))))
      }
    })


      return path.replace(/(.*:\\)/, '/').replace(/\\/g, '/')
    else
      return path
