Next: Kill Options, Previous: Killing by Lines, Up: Deletion and Killing
kill-word). See Words.
backward-kill-sentence). See Sentences.
kill-sexp). See Expressions.
One of the commonly-used kill commands is C-w
kill-region), which kills the text in the region
(see Mark). Similarly, M-w (
the text in the region into the kill ring without removing it from the
buffer. If the mark is inactive when you type C-w or M-w,
the command acts on the text between point and where you last set the
mark (see Using Region).
Emacs also provides commands to kill specific syntactic units: words, with M-<DEL> and M-d (see Words); balanced expressions, with C-M-k (see Expressions); and sentences, with C-x <DEL> and M-k (see Sentences).
The command M-z (
zap-to-char) combines killing with
searching: it reads a character and kills from point up to (and
including) the next occurrence of that character in the buffer. A
numeric argument acts as a repeat count; a negative argument means to
search backward and kill text before point.