     atom.config.set "block-cursor.#{key}", value
 
   observeConfigs: (obj) ->
-    @observeConfig key, cb for own key, cb of obj
-
-  observeConfig: (key, cb) ->
-    @subs.add atom.config.observe "block-cursor.#{key}", cb
+    for own key, cb of obj
+      @subs.add atom.config.observe "block-cursor.#{key}", cb
 
 module.exports = new BlockCursor()

  applyCursorThickness: (thickness) =>
    @updateStylesheet primarySelector, 'border-width', "#{thickness}px"

  applyCursorLineFix: (doFix) =>
    workspaceView = atom.views.getView atom.workspace
    if doFix
      workspaceView.classList.add 'block-cursor-cursor-line-fix'

  applyCursorType: (cursorTypeName) ->
    cursorType = cursorTypeMap[cursorTypeName] ? cursorTypeName
    workspaceView = atom.views.getView atom.workspace
    workspaceView.className = workspaceView.className.replace /block-cursor-(?:block|bordered-box|i-beam|underline)/, ''
    workspaceView.classList.add "block-cursor-#{cursorType}"

  applyPrimaryColor: (color = @getConfig 'primaryColor') =>
    color = color.toRGBAString()
    @updateStylesheet primarySelector, 'background-color', color
    @updateStylesheet primarySelector, 'border-color', color
    if 0 is @getConfig 'blinkInterval'
      @updateStylesheet secondarySelector, 'background-color', color
      @updateStylesheet secondarySelector, 'border-color', color

  applyPrimaryColorAlpha: (alpha) =>
    primaryColor = @getConfig 'primaryColor'
