   FS REQUESTS
   ###
 
+  setTrimTrailingWhitespaces: (value) ->
+
+    @isTrimWhiteSpaceEnabled = value
+
+
   requestSave: ->
 
     contents = @getContents()

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

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

      @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: ->
