     contents = @getContents()
     @emit "ace.requests.saveAs", contents
 
-    
+
   fetchContents:(callback)->
-    
+
     file = @getData()
     unless /localfile:/.test file.path
       file.fetchContents callback
     else
       callback null, file.contents or ""
-    
+
   ###
   GETTERS
   ###
-  
+
   getContents:-> @editor.getSession().getValue()
-  
+
   getTheme:-> @editor.getTheme().replace "ace/theme/", ""
 
   getSyntax:-> @syntaxMode
 
-  getUseSoftTabs:-> @editor.getSession().getUseSoftTabs()
-
-  getShowGutter:-> @editor.renderer.getShowGutter()
-
-  getShowPrintMargin:-> @editor.getShowPrintMargin()
-
-  getHighlightActiveLine:-> @editor.getHighlightActiveLine()
-
-  getShowInvisibles:-> @editor.getShowInvisibles()
-
-  getFontSize:-> parseInt @$("#editor#{@getId()}").css("font-size"), 10
-
-  getTabSize:-> @editor.getSession().getTabSize()
-
-  getUseWordWrap:-> @editor.getSession().getUseWrapMode()
-
-  getSoftWrap:-> 
-
-    limit = @editor.getSession().getWrapLimitRange().max
+  getUseSoftTabs:->
+    @appStorage.getValue 'useSoftTabs', @editor.getSession().getUseSoftTabs()
+
+  getShowGutter:->
+    @appStorage.getValue 'showGutter', @editor.renderer.getShowGutter()
+
+  getShowPrintMargin:->
+    @appStorage.getValue 'showPrintMargin', @editor.getShowPrintMargin()
+
+  getHighlightActiveLine:->
+    @appStorage.getValue 'highlightActiveLine', @editor.getHighlightActiveLine()
+
+  getShowInvisibles:->
+    @appStorage.getValue 'showInvisibles', @editor.getShowInvisibles()
+
+  getFontSize:->
+    @appStorage.getValue 'fontSize', parseInt(@$("#editor#{@getId()}").css("font-size"), 10)
+
+  getTabSize:->
+    @appStorage.getValue 'tabSize', @editor.getSession().getTabSize()
+
+  getUseWordWrap:->
+    @appStorage.getValue 'useWordWrap', @editor.getSession().getUseWrapMode()
+
+  getSoftWrap:->
+
+    limit = @appStorage.getValue 'softWrap', @editor.getSession().getWrapLimitRange().max
     if limit then limit
     else
       if @getUseWordWrap() then "free" else "off"
-    
+
   getSettings:->
     theme               : @getTheme()
     syntax              : @getSyntax()

  notify:(msg, style, details)->

    notification.destroy() if notification
    
    style or= 'error' if details
    
    notification = new KDNotificationView
      title     : msg or "Something went wrong"
      type      : "mini"


    file.on "fs.save.started", =>
      @lastContentsSentForSave = @getContents()

  ###
  FS REQUESTS
  ###

  requestSave:->

    contents = @getContents()
