         @handleEvents(editor)
 
     @subscriptions.add atom.commands.add 'atom-workspace',
-      'rubocop-auto-correct:current-file': => @run(atom.workspace.getActiveTextEditor())
+      'rubocop-auto-correct:current-file': =>
+        @run(atom.workspace.getActiveTextEditor())
       'rubocop-auto-correct:toggle-auto-run': => @toggleAutoRun()
       'rubocop-auto-correct:toggle-notification': => @toggleNotification()
-      'rubocop-auto-correct:toggle-only-fixes-notification': => @toggleOnlyFixesNotification()
+      'rubocop-auto-correct:toggle-only-fixes-notification': =>
+        @toggleOnlyFixesNotification()
       'rubocop-auto-correct:toggle-correct-file': => @toggleCorrectFile()
       'rubocop-auto-correct:toggle-debug-mode': => @toggleDebugMode()
 

        for offense in file.offenses
          if offense.corrected
            atom.notifications.addSuccess(
              "Line: #{offense.location.line}, Col:#{offense.location.column} (FIXED)",
              { detail: "#{offense.message}" }
            ) if notification
          else
            if !onlyFixesNotification
              atom.notifications.addWarning(
                "Line: #{offense.location.line}, Col:#{offense.location.column}",
                { detail: "#{offense.message}" }
              ) if notification


  toggleOnlyFixesNotification: ->
    setting = atom.config.get('rubocop-auto-correct.onlyFixesNotification')
    atom.config.set('rubocop-auto-correct.onlyFixesNotification', !setting)
    atom.notifications.addSuccess(
      @toggleMessage("Only fixes notification", !setting)
    )

  toggleCorrectFile: ->
    setting = atom.config.get('rubocop-auto-correct.correctFile')
