     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'

    sheet = @getCursorStyle().sheet
    sheet.insertRule "#{selector} { #{property}: #{value}; }", sheet.cssRules.length

  getConfig: (key) ->
    atom.config.get "block-cursor.#{key}"

