aboutsummaryrefslogtreecommitdiffstats
path: root/man/killing.texi
diff options
context:
space:
mode:
authorKim F. Storm <[email protected]>2005-11-09 23:22:11 +0000
committerKim F. Storm <[email protected]>2005-11-09 23:22:11 +0000
commit95a0306cc32ac4e5849ac1ce662d7f93a87cc740 (patch)
tree40db86c6f7426816fec07192544dabbd5768492d /man/killing.texi
parent318aa7bae10ff2ef671244e1dd7aa6d9136aa2e7 (diff)
* killing.texi (CUA Bindings): New node. Moved here from
misc.texi and extended with info on rectangle commands and rectangle highlighting, interface to registers, and the global mark feature.
Diffstat (limited to 'man/killing.texi')
-rw-r--r--man/killing.texi47
1 files changed, 46 insertions, 1 deletions
diff --git a/man/killing.texi b/man/killing.texi
index bcb170ac26..e6538a608e 100644
--- a/man/killing.texi
+++ b/man/killing.texi
@@ -520,7 +520,7 @@ of the specified file. The file is changed immediately on disk.
editing in Emacs would change the file behind Emacs's back, which
can lead to losing some of your editing.
-@node Rectangles, Registers, Accumulating Text, Top
+@node Rectangles, CUA Bindings, Accumulating Text, Top
@section Rectangles
@cindex rectangle
@cindex columns (and rectangles)
@@ -644,6 +644,51 @@ rectangle shifts right.
@code{string-rectangle}, but inserts the string on each line,
shifting the original text to the right.
+@node CUA Bindings, Registers, Rectangles, Top
+@findex cua-mode
+@vindex cua-mode
+@cindex CUA key bindings
+@vindex cua-enable-cua-keys
+ The command @kbd{M-x cua-mode} sets up key bindings that are
+compatible with the Common User Access (CUA) system used in many other
+applications. @kbd{C-x} means cut (kill), @kbd{C-c} copy, @kbd{C-v}
+paste (yank), and @kbd{C-z} undo. Standard Emacs commands like
+@kbd{C-x C-c} still work, because @kbd{C-x} and @kbd{C-c} only take
+effect when the mark is active. However, if you don't want these
+bindings at all, set @code{cua-enable-cua-keys} to @code{nil}.
+
+ In CUA mode, using @kbd{Shift} together with the movement keys
+activates the region over which they move. The standard (unshifted)
+movement keys deactivate the mark, and typed text replaces the active
+region as in Delete-Selection mode (@pxref{Graphical Kill}).
+
+@cindex rectangle highlighting
+ CUA mode provides enhanced rectangle support with visible
+rectangle highlighting. Use @kbd{C-RET} to start a rectangle,
+extend it using the movement commands, and cut or copy it using
+@kbd{C-x} or @kbd{C-c}. When a rectangle is active, text you type is
+automatically inserted before or after each line in the rectangle.
+
+ With CUA you can easily copy text and rectangles into and out of
+registers by providing a one-digit numeric prefix the the kill, copy,
+and yank commands, e.g. @kbd{C-1 C-c} copies the region into register
+@code{1}, and @kbd{C-2 C-v} yanks the contents of register @code{2}.
+
+@cindex global mark
+ CUA mode also has a global mark feature which allows easy moving and
+copying of text between buffers. Use @kbd{C-S-SPC} to toggle the
+global mark on and off. When the global mark is on, all text that you
+kill or copy is automatically inserted at the global mark, and text
+you type is inserted at the global mark rather than at the current
+position.
+
+ For example, to copy words from various buffers into a word list in
+a given buffer, set the global mark in the target buffer, then
+navigate to each of the words you want in the list, mark it (e.g. with
+@kbd{S-M-f}), copy it to the list with @kbd{C-c} or @kbd{M-w}, and
+insert a newline after the word in the target list by pressing
+@key{RET}.
+
@ifnottex
@lowersections
@end ifnottex