From 73796a27e54521fc422c620cf39ae87536dd9856 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Fri, 4 Oct 2013 12:28:42 -0700 Subject: [PATCH] :memo: Access config via `atom.config` not `global.config` --- src/config.coffee | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/config.coffee b/src/config.coffee index ddbe3b0be..5ee609147 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -12,19 +12,19 @@ configDirPath = fsUtils.absolute("~/.atom") # Public: Used to access all of Atom's configuration details. # # A global instance of this class is available to all plugins which can be -# referenced using `global.config` +# referenced using `atom.config` # -# ### Best practices ### +# ### Best practices # # * Create your own root keypath using your package's name. # * Don't depend on (or write to) configuration keys outside of your keypath. # -# ### Example ### +# ### Example # # ```coffeescript -# global.config.set('myplugin.key', 'value') -# global.observe 'myplugin.key', -> -# console.log 'My configuration changed:', global.config.get('myplugin.key') +# atom.config.set('myplugin.key', 'value') +# atom.config.observe 'myplugin.key', -> +# console.log 'My configuration changed:', atom.config.get('myplugin.key') # ``` module.exports = class Config