comparison man/killing.texi @ 67434:6d3669227452

(CUA Bindings): Describe how to use C-x and C-c as prefix keys even when mark is active. Decribe that RET moves cursor to next corner in rectangle; clarify insert around rectangle.
author Kim F. Storm <storm@cua.dk>
date Fri, 09 Dec 2005 14:57:33 +0000
parents 0d11e9f86005
children d16a1283eb9b
comparison
equal deleted inserted replaced
67433:70ef73a7eb6e 67434:6d3669227452
653 The command @kbd{M-x cua-mode} sets up key bindings that are 653 The command @kbd{M-x cua-mode} sets up key bindings that are
654 compatible with the Common User Access (CUA) system used in many other 654 compatible with the Common User Access (CUA) system used in many other
655 applications. @kbd{C-x} means cut (kill), @kbd{C-c} copy, @kbd{C-v} 655 applications. @kbd{C-x} means cut (kill), @kbd{C-c} copy, @kbd{C-v}
656 paste (yank), and @kbd{C-z} undo. Standard Emacs commands like 656 paste (yank), and @kbd{C-z} undo. Standard Emacs commands like
657 @kbd{C-x C-c} still work, because @kbd{C-x} and @kbd{C-c} only take 657 @kbd{C-x C-c} still work, because @kbd{C-x} and @kbd{C-c} only take
658 effect when the mark is active. However, if you don't want these 658 effect when the mark is active (and the region is highlighted).
659 bindings at all, set @code{cua-enable-cua-keys} to @code{nil}. 659 However, if you don't want these bindings at all, set
660 @code{cua-enable-cua-keys} to @code{nil}.
660 661
661 In CUA mode, using @kbd{Shift} together with the movement keys 662 In CUA mode, using @kbd{Shift} together with the movement keys
662 activates the region over which they move. The standard (unshifted) 663 activates and highlights the region over which they move. The
663 movement keys deactivate the mark, and typed text replaces the active 664 standard (unshifted) movement keys deactivate the mark, and typed text
664 region as in Delete-Selection mode (@pxref{Graphical Kill}). 665 replaces the active region as in Delete-Selection mode
666 (@pxref{Graphical Kill}).
667
668 To run a command like @kbd{C-x C-f} while the mark is active, use
669 one of the following methods: either hold @kbd{Shift} together with
670 the prefix key, e.g. @kbd{S-C-x C-f}, or quickly type the prefix key
671 twice, e.g. @kbd{C-x C-x C-f}.
665 672
666 @cindex rectangle highlighting 673 @cindex rectangle highlighting
667 CUA mode provides enhanced rectangle support with visible 674 CUA mode provides enhanced rectangle support with visible
668 rectangle highlighting. Use @kbd{C-RET} to start a rectangle, 675 rectangle highlighting. Use @kbd{C-RET} to start a rectangle,
669 extend it using the movement commands, and cut or copy it using 676 extend it using the movement commands, and cut or copy it using
670 @kbd{C-x} or @kbd{C-c}. When a rectangle is active, text you type is 677 @kbd{C-x} or @kbd{C-c}. @kbd{RET} moves the cursor to the next
671 automatically inserted before or after each line in the rectangle. 678 (clockwise) corner of the rectangle, so you can easily expand it in
679 any direction. Normal text you type is inserted to the left or right
680 of each line in the rectangle (on the same side as the cursor).
672 681
673 With CUA you can easily copy text and rectangles into and out of 682 With CUA you can easily copy text and rectangles into and out of
674 registers by providing a one-digit numeric prefix the the kill, copy, 683 registers by providing a one-digit numeric prefix the the kill, copy,
675 and yank commands, e.g. @kbd{C-1 C-c} copies the region into register 684 and yank commands, e.g. @kbd{C-1 C-c} copies the region into register
676 @code{1}, and @kbd{C-2 C-v} yanks the contents of register @code{2}. 685 @code{1}, and @kbd{C-2 C-v} yanks the contents of register @code{2}.