     # We have a `language.json`, so make sure it is loaded.
     console.log "Checking project", languagePath
 
+  saveProject: (buffer, project) ->
+    path = require "path"
+    fs = require "fs"
+
+    try
+      # Figure out the path and save the file. The file watcher will cause this
+      # to reload.
+      [projectPath, relativePath] = atom.project.relativizePath(buffer.file.path)
+      languagePath = path.join projectPath, "language.json"
+      jsonText = JSON.stringify project.json, null, "\t"
+      fs.writeFileSync languagePath, jsonText
+    catch
+      console.log "error"
+
 module.exports = ProjectChecker

    for key in keys
      results.push s[key].text
    results

  setIgnores: (project) ->
    project.ignores = []

    if not project or not project.valid
      false
    true
  providesAdding: (buffer) ->
    project = @getProject buffer
    if not project or not project.valid
      false
    true

  check: (buffer, text) ->
    # If we don't have language settings, we don't do anything.
