Show Menu
Cheatography

Doom emacs Keyboard Shortcuts (DRAFT) by

Doom emacs cheat sheet

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Doom

SPC h r r
Reload config

Editing

C-x C-o
:g/^$/d
Delete blank lines
C-x 8 RET
 
Find and insert unicode char
C-x l
 
Count lines in page

Projects

SPC p p
 
Open project
SPC SPC
SPC p f
Find file in project
SPC .
SPC f f
Find file in folder
SPC p r
 
Find recent project files
SPC p k
 
Kill project buffers (close project)
SPC p s
 
Save project files
SPC p F
 
Find file in other project

Buffers

SPC b B
SPC <
Switch buffer
SPC b b
 
Switch workspace buffer
SPC b d
SPC b k
Kill buffer
SPC b K
 
kill all buffer
SPC b h
Custom config
Open dashboard
SPC b n
SPC b ]
Next buffer
SPC b p
SPC b [
Previous buffer
SPC b x
 
Pop up scratch buffer
SPC b X
 
Switch to scratch buffer
SPC b s
 
Save buffer
SPC b S
 
Save all buffers
SPC b u
 
Save buffer as root

Functions

confirm-kill-processes
"nil" -> no confirmation
default: "t"
can be used with func yes-or-no-p
Exiting emacs
what-line
 
Display the line number of point
count-­words
 
Display # lines/words/char
count-­wor­ds-­region
 
Same as above but in region
eros-e­val­-la­st-sexp
C-x C-e / SPC m e e
Overlays output of elisp expression
 

Windows

SPC w V
Split vertically and follow
SPC w v
Split vertically
SPC w S
Split horizo­ntally and follow
SPC w s
Split horizo­ntally
SPC w r
Rotate windows

Workspaces

SPC TAB TAB
Display tab bar
SPC TAB N
New named workspace (switch from current workspace)
SPC TAB {n}
Switch to workspace {n}
SPC TAB s
Save workspace to file
SPC TAB l
Load workspace from file
SPC TAB .
Switch to workspace (display list)

Files

SPC .
SPC f f
Find file
SPC f P
 
Browse private config
SPC f D
 
Delete file
SPC f s
 
Save file
SPC f S
 
Save file as
SPC f R
 
Rename­/move file

Bookmarks

SPC b m
Set bookmark
SPC RET
Open bookmark
SPC b M
Delete bookmark

Misc

SPC h t
Choose theme
C-+/C--
Increa­se/­Dec­rease front
F10
Open global menu
q
Quit debugger
 

Docume­ntation

SPC h c
Describe key briefly
SPC h k
Describe key (show doc about key)
SPC h b b
Show existing bindings
SPC h f
Describe function (show function doc)
SPC h a
Find commands matching arg
SPC h w
Find keybin­dings of arg
SPC h p
Describe package
SPC h e
View message buffer
SPC h v
Describe variable

ESS (R)

SPC '
R console
SPC m l
Eval ligne
SPC m r
Eval region
SPC m h h
Object doc

Org mode

z i
org-di­spl­ay-­inl­ine­-image
SPC m l t
org-to­ggl­e-l­ink­-di­splay (ex: img links)

Magit

SPC g C
Clone repo
SPC g F
Fetch repo
SPC g c c
Create new commit
SPC g S
Stage file

Elisp

SPC m e e
Overlays output of elisp expression
C-x C-e
Overlays output of elisp expression from anywhere
SPC o r
Open repl in new window
SPC o R
Open repl in same window

Docker

SPC o D
Open docker menu
C-c C-b
Build dockerfile (ineeds dockerfile mode)