Show Menu
Cheatography

Spacemacs Cheat Sheet by

Basic Spacemacs commands for learning

File Management

save file
SPC f s
open file
SPC f f
toggle explorer
SPC f t

Spell-­che­cking

toggle spell-­check
SPC t S
correct word
SPC S c
go to next error
SPC S n
Spell-­che­cking uses aspell. Make sure aspell and aspel­l-en are installed from the AUR.

Misc

toggle fold
SPC z a
close folds
SPC z m
toggle shell
SPC '
expand snippet
Alt-/
word count in region
SPC x c

Git

open Magit
SPC g s
stage file/r­egion
s
unstage file/r­egion
u
open commit menu
c
finalise commit
' c
open log
l l
All commands except the first apply only inside Magit.
 

Buffers

switch buffer
SPC b b
kill current buffer
SPC b k
A buffer is a container for text, that persists in the background even when not displayed in a window.

Windows

change to window
SPC w number
close window
SPC w c
split horizo­ntally
SPC w s
split vertically
SPC w v
A window contains a buffer and can be used to create layouts.
 

Markdown

export
SPC m c e
preview
SPC m c p
insert heading
SPC m h level
insert link
SPC m i l
insert footnote
SPC m i f
bold selection
SPC m x b
italicise selection
SPC m x i
blockquote selection
SPC m x q
clean up list numbers
SPC m c n

Python

look up function
SPC m h h
run script
SPC m c c
reformat according to PEP8
SPC m =
run all tests
SPC m t a
select virtualenv
SPC m V w

Clojure

start REPL
SPC m s i
evaluate function
SPC m e f
evaluate buffer
SPC m e b
look up function
SPC m h h
run all tests
SPC m t a

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Spacemacs (+Clojure) Keyboard Shortcuts