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` |
74 ### `SPC` `f` `e` - Config
76 | Description | Shortcut |
78 | **Edit config** | `d` |
79 | Edit config and template | `D` |
81 | Reload config | `R` |
84 ### `SPC` `w` - Window
86 | Description | Shortcut |
90 | Select | `h` / `j` / `k` / `l` |
91 | Move | `H` / `J` / `K` / `L` |
94 | Split & follow | `S` |
97 | Split vert & follow | `V` |
100 ### `SPC` `p` - Project
102 | Description | Shortcut |
104 | **Switch project** | `l` |
105 | Switch project | `p` |
107 | **Open files & recent** | `h` |
110 | **Show tree** | `t` |
112 | Open terminal | `'` |
113 | Open terminal in root | `$` `t` |
114 {: .-shortcuts-right}
116 ### `SPC` `l` `w` - Workspaces
118 | Description | Shortcut |
122 | Switch previous layout | `TAB` |
123 | **Switch to nth workspace** | `0` ... `9` |
126 {: .-shortcuts-right}
128 ### `SPC` `t` - Toggle
130 | Description | Shortcut |
132 | Line numbers | `n` |
137 | Description | Shortcut |
142 {: .-shortcuts-right}
148 | Shortcut | Description |
150 | `,` `-` | Insert horizontal rule |
151 | `,` `h` `1` | Insert H1 |
158 | Shortcut | Description |
160 | `SPC` `g` `s` | **Status** |
162 | `SPC` `g` `m` | **Open dispatch menu** |
163 | `SPC` `g` `m` `s` | Stage |
164 | `SPC` `g` `m` `P` `p` | Push |
165 | `SPC` `g` `m` `c` | Commit |
167 | `SPC` `g` `t` | Open time machine |
169 | `SPC` `g` `l` `l` | Open in GitHub |
170 | `SPC` `g` `l` `L` | Show GitHub URL |
173 Version control is provided by Magit.
179 | Description | Emacs | Spacemacs |
181 | Save | `C-x` `C-s` | `SPC` `f` `s` |
182 | Open | `C-x` `C-f` | `SPC` `f` `f` |
183 | Close | `C-x` `C-k` | |
185 | Split horizontal | `C-x` `2` | `SPC` `w` `h` |
186 | Split vertical | `C-x` `3` | `SPC` `w` `v` |
188 | Confirm | `C-c` `C-c` | |
189 | Abort | `C-c` `C-k` | |
190 {: .-shortcuts-right}
194 - [Spacemacs documentation](https://github.com/syl20bnr/spacemacs/blob/master/doc/DOCUMENTATION.org) _(github.com)_