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

    @setShortcuts yes

    @appStorage.fetchStorage (storage) =>

      @setTheme()
      @setUseSoftTabs         @appStorage.getValue('useSoftTabs')         ? yes       , no
      @setShowGutter          @appStorage.getValue('showGutter')          ? yes       , no

  FS REQUESTS
  ###

  setTrimTrailingWhitespaces: (value) ->

    @isTrimWhiteSpaceEnabled = value


  requestSave: ->

    contents = @getContents()
