Spacemacs

Spacemacs is a distribution for Emacs.

A cheatsheet by @rstacruz|Refreshed 7 months ago.Refresh|View source on Github

Layers

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
SPC l Layout
SPC a Apps
SPC h Help

More

More

Description Shortcut
M-x SPC SPC
Terminal SPC '
Search SPC /

SPC h - Help

SPC h - Help

Description Shortcut
Spacemacs help SPC
Layers l
Documentation r
FAQ f
Vimtutor T

SPC f - File

SPC f - File

Description Shortcut
Save s
Save all S
Copy c
Delete D
Show filename y

SPC b - Buffer

SPC b - Buffer

Description Shortcut
Next buffer (:bnext) n
Previous buffer (:bprev) p
Delete buffer (:bd) d

SPC f e - Config

SPC f e - Config

Description Shortcut
Edit config d
Edit config and template D
Reload config R

SPC w - Window

SPC w - Window

Description Shortcut
Help .
Select h / j / k / l
Move H / J / K / L
Split s
Split & follow S
Split vert v
Split vert & follow V

SPC p - Project

SPC p - Project

Description Shortcut
Switch project l
Switch project p
Open files & recent h
Open files f
Show tree t
Open terminal '
Open terminal in root $ t

SPC l w - Workspaces

SPC l w - Workspaces

Description Shortcut
Help ?
Switch previous layout TAB
Switch to nth workspace 09
Rename R

SPC t - Toggle

SPC t - Toggle

Description Shortcut
Line numbers n

Markdown

Markdown

Shortcut Description
, - Insert horizontal rule
, h 1 Insert H1

version-control

version-control

Shortcut Description
SPC g s Status
SPC g m Open dispatch menu
SPC g m s Stage
SPC g m P p Push
SPC g m c Commit
SPC g t Open time machine
SPC g l l Open in GitHub
SPC g l L Show GitHub URL

Version control is provided by Magit.

File

File

Description Emacs Spacemacs
Save C-x C-s SPC f s
Open C-x C-f SPC f f
Close C-x C-k  
Split horizontal C-x 2 SPC w h
Split vertical C-x 3 SPC w v
Confirm C-c C-c  
Abort C-c C-k