Basics
C- |
Press and hold Control |
M- |
Press and release Esc, or hold Alt |
C-x C-c |
quit |
C-h |
help |
C-h t |
emacs tutorial |
|
Files and Buffers
C-x C-f |
Load a file into a buffer |
C-x C-s |
Save file in current buffer |
C-x b |
List buffers |
C-x C-b |
Switch to another buffer |
C-x k |
Kill current buffer |
C-x i |
Insert file at current point |
|
Movement
C-a |
Start of Line |
C-e |
End of Line |
M-< |
Start of File |
M-> |
End of File |
C-k |
Delete to end of Line |
|
Windows
C-x 2 |
Split windows |
C-x 1 |
Join windows |
C-x o |
Other window |
|
Cut n Paste
C-SPC |
Mark |
C-w |
Cut |
M-w |
Copy |
C-y |
Paste |
|
Misc
C-_ |
Undo |
TAB |
Complete |
TAB TAB |
Show completions |
C-g |
Panic! |
C-s |
Search |
M-x |
Execute Command |
M-x goto-line |
Jump to line number |
M-x replace-string |
Find and replace strings |
|
R Running
M-x R |
Start R |
C-c C-d |
Dump an object |
C-c C-l |
Load an object |
TAB |
Complete object name |
|
R Editing
C-c C-b |
Run commands in buffer |
C-c C-r |
Run marked region |
TAB |
Indent nicely |
|