diff --git a/README.md b/README.md index f5ae584..58bcc45 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,16 @@ atom.packages.onDidActivatePackage (pack) -> if pack.name == 'ex-mode' Ex = pack.mainModule.provideEx() Ex.registerCommand 'z', -> console.log("Zzzzzz...") - # Register an alias - Now :W acts like :w - Ex.registerAlias 'W', 'w' +``` + +You can also add aliases: + +```coffee +atom.packages.onDidActivatePackage (pack) -> + if pack.name == 'ex-mode' + Ex = pack.mainModule.provideEx() + Ex.registerAlias 'WQ', 'wq' + Ex.registerAlias 'Wq', 'wq' ``` See `lib/ex.coffee` for some examples commands. Contributions are very welcome!