1332 |
;;;###autoload |
;;;###autoload |
1333 |
(define-minor-mode cua-mode |
(define-minor-mode cua-mode |
1334 |
"Toggle CUA key-binding mode. |
"Toggle CUA key-binding mode. |
1335 |
When enabled, using shifted movement keys will activate the region (and |
When enabled, using shifted movement keys will activate the |
1336 |
highlight the region using `transient-mark-mode'), and typed text replaces |
region (and highlight the region using `transient-mark-mode'), |
1337 |
the active selection. C-z, C-x, C-c, and C-v will undo, cut, copy, and |
and typed text replaces the active selection. |
1338 |
paste (in addition to the normal Emacs bindings)." |
|
1339 |
|
Also when enabled, you can use C-z, C-x, C-c, and C-v to undo, |
1340 |
|
cut, copy, and paste in addition to the normal Emacs bindings. |
1341 |
|
The C-x and C-c keys only do cut and copy when the region is |
1342 |
|
active, so in most cases, they do not conflict with the normal |
1343 |
|
function of these prefix keys. |
1344 |
|
|
1345 |
|
If you really need to perform a command which starts with one of |
1346 |
|
the prefix keys even when the region is active, you have three |
1347 |
|
options: |
1348 |
|
- press the prefix key twice very quickly (within 0.2 seconds), |
1349 |
|
- press the prefix key and the following key within 0.2 seconds), or |
1350 |
|
- use the SHIFT key with the prefix key, i.e. C-S-x or C-S-c. |
1351 |
|
|
1352 |
|
You can customize `cua-enable-cua-keys' to completely disable the |
1353 |
|
CUA bindings, or `cua-prefix-override-inhibit-delay' to change |
1354 |
|
the prefix fallback behaviour." |
1355 |
:global t |
:global t |
1356 |
:group 'cua |
:group 'cua |
1357 |
:set-after '(cua-enable-modeline-indications cua-use-hyper-key) |
:set-after '(cua-enable-modeline-indications cua-use-hyper-key) |