WSU logo


College of Engineering & CS
Wright State University
Dayton, Ohio 45435-0001

CEG 333: Introduction to Unix

Prabhaker Mateti

Emacs: Rectangles


Key Meaning
C-x r k Kill rectangle
C-x r d Delete rectangle
C-x r y Yank rectangle
C-x r c Clear rectangle

Another powerful editing feature of Emacs is its rectangle selection support. The point and mark have been introduced as the two ends of a region, analogous to the text selections in other programs. Now imagine them as two diagonally opposite corners of a rectangle.

Many of the common operations defined on the region are also valid on rectangles. They can be deleted (C-x r d), killed (C-x r k), yanked C-x r y, cleared (C-x r c), and so forth.