(emacs)Erasing


Next: Basic Files Prev: Moving Point Up: Basic

Erasing Text
============

`DEL'
     Delete the character before the cursor (`delete-backward-char').

`C-d'
     Delete the character after the cursor (`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').

   You already know about the DEL key which deletes the character
before the cursor.  Another key, `Control-d' (`C-d' for short), deletes
the character after the cursor, causing the rest of the text on the
line to shift left.  If `C-d' is typed at the end of a line, that line
and the next line are joined together.

   To erase a larger amount of text, use the `C-k' key, which kills a
line at a time.  If `C-k' is done at the beginning or middle of a line,
it kills all the text up to the end of the line.  If `C-k' is done at
the end of a line, it joins that line and the next line.

   If you delete or kill text by mistake, you can use the undo command
to get it back.  Note: Undo.

   Note: Killing, for more flexible ways of killing text.


automatically generated by info2www