         bodyTree ?= @getBodyParser().parse(body)
         snippet = new Snippet({name, prefix, bodyTree, bodyText: body})
         snippetsByPrefix[snippet.prefix] = snippet
-      disposable.add atom.config.addScopedSettings(filePath, selector, snippets: snippetsByPrefix)
-    disposable
+      atom.config.set('snippets', snippetsByPrefix, source: filePath, scopeSelector: selector)
 
   getBodyParser: ->
     @bodyParser ?= require './snippet-body-parser'

      callback(object)

  add: (filePath, snippetsBySelector) ->
    disposable = new CompositeDisposable
    for selector, snippetsByName of snippetsBySelector
      snippetsByPrefix = {}
      for name, attributes of snippetsByName

  # Get a RegExp of all the characters used in the snippet prefixes
  wordRegexForSnippets: (snippets) ->
    prefixes = {}

    for prefix of snippets
      prefixes[character] = true for character in prefix
    prefixCharacters = Object.keys(prefixes).join('')
