diff options
| author | Kim F. Storm | 2005-05-17 22:39:06 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-05-17 22:39:06 +0000 |
| commit | c9ee062db9a457ec256522c486ba3a5ffd6b853c (patch) | |
| tree | da847383953b09824a88c47c58357924ca09d172 | |
| parent | 77e2c652988e1e3dbe45557ad5561007d9054e79 (diff) | |
| download | emacs-c9ee062db9a457ec256522c486ba3a5ffd6b853c.tar.gz emacs-c9ee062db9a457ec256522c486ba3a5ffd6b853c.zip | |
(cua-use-hyper-key): Doc fix.
(cua--init-keymaps): Bind C-return instead of S-return to set rectangle mark.
| -rw-r--r-- | lisp/emulation/cua-base.el | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index f768c36b258..6ea6bfb7f3d 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el | |||
| @@ -159,13 +159,13 @@ | |||
| 159 | ;; left edge of a rectangle start in the middle of a TAB character. | 159 | ;; left edge of a rectangle start in the middle of a TAB character. |
| 160 | ;; Sounds strange? Try it! | 160 | ;; Sounds strange? Try it! |
| 161 | ;; | 161 | ;; |
| 162 | ;; To start a rectangle, use [S-return] and extend it using the normal | 162 | ;; To start a rectangle, use [C-return] and extend it using the normal |
| 163 | ;; movement keys (up, down, left, right, home, end, C-home, | 163 | ;; movement keys (up, down, left, right, home, end, C-home, |
| 164 | ;; C-end). Once the rectangle has the desired size, you can cut or | 164 | ;; C-end). Once the rectangle has the desired size, you can cut or |
| 165 | ;; copy it using C-x and C-c (or C-w and M-w), and you can | 165 | ;; copy it using C-x and C-c (or C-w and M-w), and you can |
| 166 | ;; subsequently insert it - as a rectangle - using C-v (or C-y). So | 166 | ;; subsequently insert it - as a rectangle - using C-v (or C-y). So |
| 167 | ;; the only new command you need to know to work with cua-mode | 167 | ;; the only new command you need to know to work with cua-mode |
| 168 | ;; rectangles is S-return! | 168 | ;; rectangles is C-return! |
| 169 | ;; | 169 | ;; |
| 170 | ;; Normally, when you paste a rectangle using C-v (C-y), each line of | 170 | ;; Normally, when you paste a rectangle using C-v (C-y), each line of |
| 171 | ;; the rectangle is inserted into the existing lines in the buffer. | 171 | ;; the rectangle is inserted into the existing lines in the buffer. |
| @@ -183,7 +183,7 @@ | |||
| 183 | ;; entire rectangle overlay (but not the contents) in the given | 183 | ;; entire rectangle overlay (but not the contents) in the given |
| 184 | ;; direction. | 184 | ;; direction. |
| 185 | ;; | 185 | ;; |
| 186 | ;; [S-return] cancels the rectangle | 186 | ;; [C-return] cancels the rectangle |
| 187 | ;; [C-space] activates the region bounded by the rectangle | 187 | ;; [C-space] activates the region bounded by the rectangle |
| 188 | 188 | ||
| 189 | ;; If you type a normal (self-inserting) character when the rectangle is | 189 | ;; If you type a normal (self-inserting) character when the rectangle is |
| @@ -194,7 +194,7 @@ | |||
| 194 | ;; bottom of the rectangle. So, for example, to comment out an entire | 194 | ;; bottom of the rectangle. So, for example, to comment out an entire |
| 195 | ;; paragraph like this one, just place the cursor on the first character | 195 | ;; paragraph like this one, just place the cursor on the first character |
| 196 | ;; of the first line, and enter the following: | 196 | ;; of the first line, and enter the following: |
| 197 | ;; S-return M-} ; ; <space> S-return | 197 | ;; C-return M-} ; ; <space> C-return |
| 198 | 198 | ||
| 199 | ;; cua-mode's rectangle support also includes all the normal rectangle | 199 | ;; cua-mode's rectangle support also includes all the normal rectangle |
| 200 | ;; functions with easy access: | 200 | ;; functions with easy access: |
| @@ -330,12 +330,12 @@ interpreted as a register number." | |||
| 330 | :group 'cua) | 330 | :group 'cua) |
| 331 | 331 | ||
| 332 | (defcustom cua-use-hyper-key nil | 332 | (defcustom cua-use-hyper-key nil |
| 333 | "*If non-nil, bind rectangle commands to H-? instead of M-?. | 333 | "*If non-nil, bind rectangle commands to H-... instead of M-.... |
| 334 | If set to 'also, toggle region command is also on S-return. | 334 | If set to 'also, toggle region command is also on C-return. |
| 335 | Must be set prior to enabling CUA." | 335 | Must be set prior to enabling CUA." |
| 336 | :type '(choice (const :tag "Meta key and S-return" nil) | 336 | :type '(choice (const :tag "Meta key and C-return" nil) |
| 337 | (const :tag "Hyper key only" only) | 337 | (const :tag "Hyper key only" only) |
| 338 | (const :tag "Hyper key and S-return" also)) | 338 | (const :tag "Hyper key and C-return" also)) |
| 339 | :group 'cua) | 339 | :group 'cua) |
| 340 | 340 | ||
| 341 | (defcustom cua-enable-region-auto-help nil | 341 | (defcustom cua-enable-region-auto-help nil |
| @@ -1235,7 +1235,7 @@ If ARG is the atom `-', scroll upward by nearly full screen." | |||
| 1235 | 1235 | ||
| 1236 | (defun cua--init-keymaps () | 1236 | (defun cua--init-keymaps () |
| 1237 | (unless (eq cua-use-hyper-key 'only) | 1237 | (unless (eq cua-use-hyper-key 'only) |
| 1238 | (define-key cua-global-keymap [(shift return)] 'cua-set-rectangle-mark)) | 1238 | (define-key cua-global-keymap [(control return)] 'cua-set-rectangle-mark)) |
| 1239 | (when cua-use-hyper-key | 1239 | (when cua-use-hyper-key |
| 1240 | (cua--M/H-key cua-global-keymap 'space 'cua-set-rectangle-mark) | 1240 | (cua--M/H-key cua-global-keymap 'space 'cua-set-rectangle-mark) |
| 1241 | (define-key cua-global-keymap [(hyper mouse-1)] 'cua-mouse-set-rectangle-mark)) | 1241 | (define-key cua-global-keymap [(hyper mouse-1)] 'cua-mouse-set-rectangle-mark)) |