Show Menu
Cheatography

EmacsForPython Cheat Sheet (DRAFT) by

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

Basic Commands

c-_
Undo
c-g
Cancel
c-x c-f
Find files
c-x c-s
Save file
c-x s
Save all buffers
c-u NUM COM
Repeat COM NUM times
esc-%
Replace string
m-x replac­e-s­tring
Replace all strings
m-;
Comment region
m-u
Uppercase
m-l
Lowercase
c-s
Search
m-x linunm­-mode
Toggles linum mode
m-ARROW
Indents line/r­egion
 

Buffers

c-x 1
Kill any other buffers
c-x c-b
List buffers
c-x b
Select buffer
c-x 2
Horizontal split
c-x 3
Vertical split
c-x 0
kill current buffer
c-x ARROW
Moves to between buffers
c-x 4 c-f
Open file in new windows

Cut & Copy & Paste & delete

c-y
yank
c-k
Kill line
m-w
Copy line
c-w
Kill & save line
c-c c
Copy line
c-c d
Kill & save line
 

Movement

c-e
Move to end of line
c-a
Move to the begginign of line
m-g m-g
Move to line number
c-v
Move forward
m-v
Move backwards
esc <
Beginning of file
esc >
End of file
m-b
Moves to beginning of next word

Elpy

c-c c-f
Find files (fuzzy)
c-c c-s
Search in project
m-.
Go to definition
m-,
Go to last goto
c-c c-v
Syntax check
c-c c-z
Open shell
c-c c-y e
Send statemente to shell
c-c c-y r
Send region to shell
c-c c-t
Run tests
m-x elpy-f­orm­at-code
Format code
c-x TAB
Indent selection