             Cancel: -> window.alert('Please install Python (https://www.python.org/downloads/) and restart Atom to enable the WakaTime plugin.')
     )
     cleanupOnUninstall()
-    setupConfig()
     setupEventHandlers()
     console.log 'WakaTime v'+packageVersion+' loaded.'
 
 enoughTimePassed = (time) ->
   return lastHeartbeat + 120000 < time
-
-setupConfig = () ->
-  unless atom.config.get("wakatime.apikey")?
-    defaults =
-      apikey: ""
-      ignore: ["^/var/", "^/tmp/", "^/private/", "COMMIT_EDITMSG$", "PULLREQ_EDITMSG$", "MERGE_MSG$"]
-    atom.config.set("wakatime", defaults)
 
 cleanupOnUninstall = () ->
   if unloadHandler?

lastFile = ''

module.exports =

  activate: (state) ->
    packageVersion = atom.packages.getLoadedPackage('wakatime').metadata.version

fileIsIgnored = (file) ->
  if endsWith(file, 'COMMIT_EDITMSG') or endsWith(file, 'PULLREQ_EDITMSG') or endsWith(file, 'MERGE_MSG') or endsWith(file, 'TAG_EDITMSG')
    return true
  patterns = atom.config.get("wakatime.exclude")
  ignore = false
  for pattern in patterns
    re = new RegExp(pattern, "gi")
