You are on page 1of 1

Spacemacs Cheat Sheet

by witek (witek) via cheatography.com/27891/cs/8186/

Editing Project Windows

SPC n [f w] narrow to [function whole] SPC p [r f] [recent file] SPC w x close window and buffer

SPC j j split line SPC p [! &] [exec async] command SPC w m maximize

SPC J split sexp SPC p p change project SPC w C close other

g c c comment line SPC p t NeoTree SPC w [- /] split [horiz​ontal vertical]

SPC c [p l] comment [paragraph line] SPC w w cycle


Selection
J join line with next one SPC w [h l k switch to [left right up
SPC [v V r ] region [expand contract reset] j] down]
[u Ctrl+R] [undo redo]
v i i region by indent​ation
:%s/ old / new replace all old with new
Buffers

Formating SPC TAB switch to alternate


Search
SPC j k indent next line SPC b k kill
SPC / Search in Project
SPC j = indent file SPC b [n p] [next previous]
Lisp Mode SPC . SPC b s scratch
Text Objects
( insert before
w W word Files
) insert after
s sentence SPC f S save all
[0 $] goto sexp [begin end]
p paragraph SPC f E open with sudo
[b B] barf (narrow) [forward backward]
t tag SPC f o open with default app
[s S] slurp (expand) [forward backward]
b block (s-exp) SPC f R rename
J sexp join
i same indent​ation SPC f d delete
[p P] paste [after before]

p paste previous SPC f t NeoTree


Movement
Ctrl+P
'' back to last position Help
r sexp raise (replace parent with
: n ENTER goto line n bindings and commands
current) SPC ?

[w W] [wrap unwrap]
Zooming Spacemacs
y sexp copy
SPC z x [+ - 0 ] [bigger smaller reset] font SPC f e d open .spac​emacs

Clojure / CIDER SPC SPC execute emacs command


Searching
, s i start REPL
SPC t h toggle automatic symbol Magit
, e b eval buffer
a highlight
,, submit commit message
, s b send and eval buffer

, g g jump to definition

By witek (witek) Published 12th May, 2016. Sponsored by CrosswordCheats.com


cheatography.com/witek/ Last updated 1st February, 2019. Learn to solve cryptic crosswords!
Page 1 of 1. http://crosswordcheats.com

You might also like