 
 module.exports =
   view: null
+
+  configDefaults:
+    executable: 'go fmt'
+    formatOnSave: true
 
   activate: (state) ->
     @view = new GoFormatStatusView(state.viewState)


  attachEditor: (editor) ->
    atom.subscribe editor.getBuffer(), 'reloaded saved', =>
      @format(editor)
    atom.subscribe editor.getBuffer(), 'destroyed', =>
      atom.unsubscribe(editor.getBuffer())


    if editor and editor.getPath()
      scope = editor.getCursorScopes()[0]
      if scope is 'source.go'
        cmd = atom.config.get('go-format.executable')
        exec cmd + ' ' + editor.getPath(), (err, stderr, stdout) =>
          if not err or err.code is 0
            text = 'Saved.'
          else
