# smex contribution layer for Spacemacs
![Smex](https://raw.githubusercontent.com/syl20bnr/spacemacs/master/contrib/smex/smex.png)
This layer replaces `helm-M-x` by [smex][] which is built on top of `ido`.
`ido` can perform flex matching with the [flx-ido][] mode which is already
activated in the Spacemacs layer.
## Install
To use this contribution add it to your `~/.spacemacs`
```elisp
(defvar dotspacemacs-configuration-layers '(smex)
"List of contribution to load."
)
```
## Key bindings
Key Binding | Description
--------------------|------------------------------------------------------------
SPC : | all Emacs commands (interactive functions)
SPC m : | current major mode commands
## `jk` on leader
The experimental feature [evil leader on `jk`][jk] is supported in this layer.
While the smex minibuffer is opened press quickly jk then:
Key Binding | Description
--------------------|------------------------------------------------------------
g | go to the definition of current command
h d f | describe the current command
h w | show the key binding for the current command
[smex]: https://github.com/nonsequitur/smex
[flx-ido]: https://github.com/lewang/flx
[jk]: https://github.com/syl20bnr/spacemacs/blob/master/DOCUMENTATION.md#jk-to-trigger-evil-leader