       @setEnableAutocomplete  @appStorage.getValue('enableAutocomplete')  ? yes       , no
       @setEnableSnippets      @appStorage.getValue('enableSnippets')      ? yes       , no
       @setEnableEmmet         @appStorage.getValue('enableEmmet')         ? no        , no
+
+      @isTrimWhiteSpaceEnabled = if @appStorage.getValue('trimTrailingWhitespaces') then yes else no
 
 
   saveStarted: ->

  FS REQUESTS
  ###

  requestSave: ->

    contents = @getContents()

      if @getDelegate().parent.active
        @notify 'Nothing to save!'
      return

    if @isTrimWhiteSpaceEnabled
      @trimTrailingWhitespaces()
      contents = @getContents()

    @askedForSave = yes
    @emit 'ace.requests.save', contents
