HMC Homepage      CS Home

A List of the Key Commands in EMACS

Emacs Commands

Action

Command

invoke emacs emacs filename
save file C-x C-s
exit emacs C-x C-c
command line mode Esc-x
abort command C-g
recenter screen C-l
open a shell in emacs M-x shell
Search and Replace
incremental search forward (may not work on some terminals) C-s
search forward C-s <return>
incremental search backward C-r
search backward C-r <return>
find and replace Esc-x replace-string
query find and replace Esc-x query-replace or Esc-%
Movement Commands
up one line up arrow or C-p
down one line down arrow or C-n
right one character right arrow or C-f
left one character left arrow or C-b
next word Esc-f
previous word Esc-b
beginning of line C-a
end of line C-e
page forward C-v
page backward Esc-v
Delete Commands
previous character C-h or <delete>
current character C-d
to end of line C-k
Cut and Paste
mark beginning of region C-<space> or C-@ or C-2
copy region Esc-w
delete region C-w
yank (copy) C-y
yank previous Esc-y
File and Buffer Commands
find file C-x C-f
insert file C-x I
change buffers C-x B
list buffers C-x C-b
kill buffer C-x K
Multiple Files and Windows
open another file C-x C-f
open a new frame (window) C-x 5 2 or M-x new-frame
split window vertically C-x 2
kill other windows C-x 1
change frames (within a window) C-x O
save some (or all) open files C-x S
open a shell in emacs M-x shell


Copyright (c) HMC Computer Science Department. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with the no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License.''

HMC Computer Science Department
Olin Science Center
301 E. Twelfth Street Claremont, CA 91711-5980 USA
PH : (909) 621-8225 FX : (909) 621-8465
Info Email: CS Staff or Admission Office
Last Modified Tuesday, 22-May-2001 14:34:54 PDT