* [Screen Shots](#markdown-header-screen-shots)
* [Similar Extensions](#markdown-header-similar-extensions)
* [See Also](#markdown-header-see-also)
* [Recent activity](#repo-activity)
For information on customizing the colors used by the extension, see [Config#Colors](https://bitbucket.org/bmearns/hgcfg/wiki/Config#markdown-header-colors).
+This extension also provides a basic API that other mercurial extensions can use to poke around and modify
+configuration files, instead of hacking on the text themselves. Although this API is not yet documented well,
+you can take a look at the available functions in [hgcfg.py](https://bitbucket.org/bmearns/hgcfg/src/tip/hgext/hgcfg.py).
+Most of them even have useful docstrings.
+To access the API from another extension, use the following python code:
+ import mercurial.extensions
+ hgcfg = mercurial.extensions.find('hgcfg')
+The `hgcfg` variable will then hold a `module` object, which you can use just like an imported module. For instance:
+ scopes = ["local", "user"]
+ hgcfg.writevalue(ui, repo, section, key, value, scopes)
This extension was originally forked from the [`hgconfig`](http://mercurial.selenic.com/wiki/ConfigExtensionCommandLine)