Sunday, September 30, 2007

emacs: how to delete a block of region

Mark (Ctrl+Space) the beginning of first line and move cursor to the the last line, and move it to the right n chars. Then do “Alt+x kill-rectangle” (Ctrl+x r k). This command can be used to delete any rectangular block of text, not just at the beginning of lines.

From: http://xahlee.org/emacs/emacs.html

No comments:

Locations of visitors to this page