diff --git a/wip/spacemacs.md b/wip/spacemacs.md new file mode 100644 index 000000000..b29bc8998 --- /dev/null +++ b/wip/spacemacs.md @@ -0,0 +1,71 @@ +--- +title: Spacemacs +--- + +### Layers + +| Shortcut | Description | +| --- | --- | +| `SPC` `f` | File | +| `SPC` `p` | Project | +| `SPC` `t` | Toggle | +| `SPC` `b` | Buffer | +| --- | --- | +| `SPC` `m` | Major mode | +| `,` | Same as `SPC` `m` | +| --- | --- | +| `SPC` `g` | Git | +{: .-shortcuts} + +### File (`f`) + +| Shortcut | Description | +| --- | --- | +| `SPC` `f` `s` | Save | +| `SPC` `f` `c` | Copy | +{: .-shortcuts} + +### Buffer (`b`) + +| Shortcut | Description | +| --- | --- | +| `SPC` `b` `n` | Next buffer (`:bnext`) | +| `SPC` `b` `p` | Previous buffer (`:bprev`) | +{: .-shortcuts} + +### Config (`fe`) + +| Shortcut | Description | +| --- | --- | +| `SPC` `f` `e` `d` | Edit config | +| `SPC` `f` `e` `D` | Edit config and template | +| --- | --- | +| `SPC` `f` `e` `R` | Reload config | +{: .-shortcuts} + +### Window (`w`) + +| Shortcut | Description | +| --- | --- | +| `SPC` `w` `.` | Help | +| --- | --- | +| `SPC` `w` `h/j/k/l` | Select | +| `SPC` `w` `H/J/K/L` | Move | +| --- | --- | +| `SPC` `w` `s` | Split | +| `SPC` `w` `S` | Split & follow | +| --- | --- | +| `SPC` `w` `v` | Split vert | +| `SPC` `w` `V` | Split vert & follow | +{: .-shortcuts} + +## Major modes + +### Markdown + +| Shortcut | Description | +| --- | --- | +| `,` `-` | Insert horizontal rule | +| `,` `h` `1` | Insert H1 | +{: .-shortcuts} +