 else if fs.existsSync(atomConfigPath)
   atomConfigJson = require(atomConfigPath)
   csscomb.configure(atomConfigJson)
-  
+
 module.exports =
 
   activate: (state) ->
-    atom.workspaceView.command 'csscomb:execute', => @execute()
+    atom.commands.add 'atom-workspace', 'csscomb:execute', => @execute()
 
   getExecPath: ->
     "ATOM_SHELL_INTERNAL_RUN_AS_NODE=1 '#{process.execPath}'"


CSSComb = require('csscomb')
csscomb = new CSSComb('csscomb')
userConfigPath = atom.project.resolve('.csscomb.json')
atomConfigPath = path.join(__dirname, '../csscomb.json')

if fs.existsSync(userConfigPath)

    atom.config.get('csscomb.nodepath')

  execute: ->
    editor = atom.workspace.getActiveTextEditor()

    return unless editor isnt no

