Lexington High School Mathematics Math Dept. Front Page  | Student Links  | Family Links 
C++ courses Intro. Prog. I  | Intro. Prog. II  | AP Comp. Sci.  | C++ Info Page 

Emacs Commands Quick Reference

This page lists some frequently used emacs commands. For many more commands, see the complete Gnu emacs manual.

C-x means press the Control and x keys simultaneously, and E-x means press the Esc key followed by the x key.

Emacs Control
run emacsemacs FileName quit emacsC-x C-c
write fileC-x C-w save fileC-x C-s
suspend emacsC-z resume emacs (foreground)fg
quit current commandC-g undo last commandC-x u
Cursor Movement
next char (forward)C-f previous char (back)C-b
next wordE-f previous word E-b
beginning of lineC-a end of lineC-e
next lineC-n previous line C-p
next pageC-v previous page E-v
first pageE-< last pageE->
(you may also use the arrow keys)
Erasing Characters
delete rightC-d delete leftDEL
Cut and Paste
cut line right (kill)C-k paste (yank)C-y
Search/Replace
global search and replace(it prompts for old and new)E-x replace-string ask search and replace (it prompts for old and new, then asks each replacement)E-x query-replace
On-line Help
help about SubjectC-h a Subject run emacs on-line infoC-h i