2014-12-02 02:45:05 +00:00
|
|
|
# smex contribution layer for Spacemacs
|
|
|
|
|
2014-12-14 05:16:04 +00:00
|
|
|
![logo](smex.png)
|
|
|
|
|
|
|
|
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc/generate-toc again -->
|
|
|
|
**Table of Contents**
|
|
|
|
|
|
|
|
- [smex contribution layer for Spacemacs](#smex-contribution-layer-for-spacemacs)
|
|
|
|
- [Description](#description)
|
|
|
|
- [Install](#install)
|
|
|
|
- [Key bindings](#key-bindings)
|
|
|
|
- [`jk` on leader](#jk-on-leader)
|
|
|
|
|
|
|
|
<!-- markdown-toc end -->
|
|
|
|
|
|
|
|
## Description
|
2014-12-02 02:45:05 +00:00
|
|
|
|
|
|
|
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
|
2014-12-10 04:50:48 +00:00
|
|
|
(setq-default dotspacemacs-configuration-layers '(smex)
|
2014-12-02 02:45:05 +00:00
|
|
|
"List of contribution to load."
|
|
|
|
)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Key bindings
|
|
|
|
|
|
|
|
Key Binding | Description
|
|
|
|
--------------------|------------------------------------------------------------
|
|
|
|
<kbd>SPC :</kbd> | all Emacs commands (interactive functions)
|
|
|
|
<kbd>SPC m :</kbd> | 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 <kbd>jk</kbd> then:
|
|
|
|
|
|
|
|
Key Binding | Description
|
|
|
|
--------------------|------------------------------------------------------------
|
|
|
|
<kbd>g</kbd> | go to the definition of current command
|
2014-12-02 02:49:01 +00:00
|
|
|
<kbd>h d f</kbd> | describe the current command
|
2014-12-02 02:45:05 +00:00
|
|
|
<kbd>h w</kbd> | 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
|