8 [Spacemacs](http://spacemacs.org) is a distribution for Emacs.
17 | Shortcut | Description |
20 | `SPC` `p` | Project |
21 | `SPC` `t` | Toggle |
22 | `SPC` `b` | Buffer |
24 | `SPC` `m` | Major mode |
25 | `,` | Same as `SPC` `m` |
28 | `SPC` `l` | Layout |
31 {: .-shortcuts.-prime}
35 | Description | Shortcut |
37 | **M-x** | `SPC` `SPC` |
38 | Terminal | `SPC` `'` |
39 | Search | `SPC` `/` |
44 | Description | Shortcut |
46 | **Spacemacs help** | `SPC` |
49 | Documentation | `r` |
56 | Description | Shortcut |
63 | Show filename | `y` |
66 ### `SPC` `b` - Buffer
68 | Description | Shortcut |
70 | Next buffer (`:bnext`) | `n` |
71 | Previous buffer (`:bprev`) | `p` |
72 | Delete buffer (`:bd`) | `d` |
75 ### `SPC` `f` `e` - Config
77 | Description | Shortcut |
79 | **Edit config** | `d` |
80 | Edit config and template | `D` |
82 | Reload config | `R` |
85 ### `SPC` `w` - Window
87 | Description | Shortcut |
91 | Select | `h` / `j` / `k` / `l` |
92 | Move | `H` / `J` / `K` / `L` |
95 | Split & follow | `S` |
98 | Split vert & follow | `V` |
101 ### `SPC` `p` - Project
103 | Description | Shortcut |
105 | **Switch project** | `l` |
106 | Switch project | `p` |
108 | **Open files & recent** | `h` |
111 | **Show tree** | `t` |
113 | Open terminal | `'` |
114 | Open terminal in root | `$` `t` |
115 {: .-shortcuts-right}
117 ### `SPC` `l` `w` - Workspaces
119 | Description | Shortcut |
123 | Switch previous layout | `TAB` |
124 | **Switch to nth workspace** | `0` ... `9` |
127 {: .-shortcuts-right}
129 ### `SPC` `t` - Toggle
131 | Description | Shortcut |
133 | Line numbers | `n` |
138 | Description | Shortcut |
143 {: .-shortcuts-right}
149 | Shortcut | Description |
151 | `,` `-` | Insert horizontal rule |
152 | `,` `h` `1` | Insert H1 |
159 | Shortcut | Description |
161 | `SPC` `g` `s` | **Status** |
163 | `SPC` `g` `m` | **Open dispatch menu** |
164 | `SPC` `g` `m` `s` | Stage |
165 | `SPC` `g` `m` `P` `p` | Push |
166 | `SPC` `g` `m` `c` | Commit |
168 | `SPC` `g` `t` | Open time machine |
170 | `SPC` `g` `l` `l` | Open in GitHub |
171 | `SPC` `g` `l` `L` | Show GitHub URL |
174 Version control is provided by Magit.
180 | Description | Emacs | Spacemacs |
182 | Save | `C-x` `C-s` | `SPC` `f` `s` |
183 | Open | `C-x` `C-f` | `SPC` `f` `f` |
184 | Close | `C-x` `C-k` | |
186 | Split horizontal | `C-x` `2` | `SPC` `w` `h` |
187 | Split vertical | `C-x` `3` | `SPC` `w` `v` |
189 | Confirm | `C-c` `C-c` | |
190 | Abort | `C-c` `C-k` | |
191 {: .-shortcuts-right}
195 - [Spacemacs documentation](https://github.com/syl20bnr/spacemacs/blob/master/doc/DOCUMENTATION.org) _(github.com)_