Post

4 Commands for working with regions

KeystrokesCommand nameAction
C-@ or C- Spaceset-mark-commandMark the beginning (or end) of a region.
C-x C-xexchange-point-and-markExchange location of cursor and mark.
C-wkill-regionDelete the region.
C-yyankPaste most recently killed or copied text.
M-wkill-ring-saveCopy the region (so it can be pasted withC-y).
M-hmark-paragraphMark paragraph.
C-x C-pmark-pageMark page.
C-x hmark-whole-bufferMark buffer.
M-yyank-popAfter C-y, pastes earlier deletion.
This post is licensed under CC BY 4.0 by the author.