Editing Your Stuff
Mark and Point
Many Emacs commands operate on an arbitrary contiguous part of the
current buffer. To specify the text for such a command to operate on,
you set "the mark" at one end of it, and move point to the other end.
The text between point and the mark is called "the region".
Below is a list of commands that work with mark and point:
- "
C-SPC" Set the mark where point is
("set-mark-command").
- "
C-@" The same.
- "
C-x C-x" Interchange mark and point
("exchange-point-and-mark").
- "
Drag-Mouse-1" Set point and the mark
around the text you drag across.
- "
Mouse-3" Set the mark where point is, then
move point to where you click
("mouse-save-then-kill").
General Editing Commands
Below is a list of general editing command for simple text processing:
- "
DEL" Delete the character before point
("delete-backward-char").
- "
C-d" Delete the character after point
("delete-char").
- "
C-k" Kill to the end of the line
("kill-line").
- "
M-d" Kill forward to the end of the next
word ("kill-word").
- "
M-DEL" Kill back to the beginning of the
previous word
("backward-kill-word").
- "
C-w" Kill region from point to the mark
("kill-region").
- "
C-y" Yank last killed text
("yank").
- "
M-y" Replace text just yanked with an
earlier batch of killed text
("yank-pop").
- "
M-w" Save region as last killed text
without actually killing it
("kill-ring-save").
Beginning |
Previous |
Next
Last updated $Date: 1997/04/11 03:46:09 $.