   onDidChangeMini: (callback) ->
     @emitter.on 'did-change-mini', callback
 
-  setLineNumberGutterVisible: (lineNumberGutterVisible) ->
-    unless lineNumberGutterVisible is @lineNumberGutter.isVisible()
-      if lineNumberGutterVisible
-        @lineNumberGutter.show()
-      else
-        @lineNumberGutter.hide()
-      @emitter.emit 'did-change-line-number-gutter-visible', @lineNumberGutter.isVisible()
-    @lineNumberGutter.isVisible()
+  setLineNumberGutterVisible: (lineNumberGutterVisible) -> @update({lineNumberGutterVisible})
 
   isLineNumberGutterVisible: -> @lineNumberGutter.isVisible()
 

  # * `softWrapped` A {Boolean}
  #
  # Returns a {Boolean}.
  setSoftWrapped: (softWrapped, resetDisplayLayer=true) ->
    if softWrapped isnt @softWrapped
      @softWrapped = softWrapped
      @resetDisplayLayer() if resetDisplayLayer
      softWrapped = @isSoftWrapped()
      @emitter.emit 'did-change-soft-wrapped', softWrapped
      softWrapped
    else
      @isSoftWrapped()

  setSoftWrapAtPreferredLineLength: (softWrapAtPreferredLineLength) ->
    return if softWrapAtPreferredLineLength is @softWrapAtPreferredLineLength
    @softWrapAtPreferredLineLength = softWrapAtPreferredLineLength
    @resetDisplayLayer()

  doesSoftWrapAtPreferredLineLength: -> @softWrapAtPreferredLineLength

  setPreferredLineLength: (preferredLineLength) ->
    return if preferredLineLength is @preferredLineLength
    @preferredLineLength = preferredLineLength
    @resetDisplayLayer()

  getPreferredLineLength: -> @preferredLineLength


  # Essential: Retrieves the greyed out placeholder of a mini editor.
  #
  # Returns a {String}.
  getPlaceholderText: -> @placeholderText

  # Essential: Set the greyed out placeholder of a mini editor. Placeholder text
  # will be displayed when the editor has no content.
  #
  # * `placeholderText` {String} text that is displayed when the editor has no content.
  setPlaceholderText: (placeholderText) -> @update({placeholderText})

  pixelPositionForBufferPosition: (bufferPosition) ->
    Grim.deprecate("This method is deprecated on the model layer. Use `TextEditorElement::pixelPositionForBufferPosition` instead")
