         return new Promise (resolve, reject) =>
           filePath = textEditor.getPath()
           lines = []
+          executablePath = atom.config.get 'linter-elm-make.elmMakeExecutablePath'
           options =
             cwd: atom.project.getPaths()[0]
             env: proc.env
           process = new BufferedProcess
-            command: @executablePath
+            command: executablePath
             args: [filePath, '--warn', '--report=json']
             options: options
             stdout: (data) ->

      title: 'The elm-make executable path.'
      type: 'string'
      default: 'elm-make'

  activate: ->
    @subscriptions = new CompositeDisposable
    @subscriptions.add atom.config.observe 'linter-elm-make.elmMakeExecutablePath',
      (executablePath) => @executablePath = executablePath

  deactivate: ->
    @subscriptions.dispose()

  provideLinter: ->
    proc = process

                ]

          process.onWillThrowError ({error,handle}) ->
            atom.notifications.addError "Failed to run #{executablePath}",
              detail: "#{error.message}"
              dismissable: true
            handle()
