4 ms·
You're really swimming upstream if you don't use defaults for C-x and C-c. I have S-delete, C-insert, and M-insert bound to cut, copy and paste respectively; S
by barrkel 13y ago
You're really swimming upstream if you don't use defaults for C-x and C-c.
I have S-delete, C-insert, and M-insert bound to cut, copy and paste respectively; S-insert pastes the system clipboard in the terminals I use. I use these when doing a lot of moving text around.
I do have C-v bound to yank, and M-v bound to yank-pop. C-y is a very awkward keystroke.
But C-w isn't too hard to use for cut, nor M-w for copy, when avoiding the arrow keys / edit block.
- JoshTriplett 13y agoCUA's C-x/C-c/C-v bindings aside (which don't actually conflict with the standard Emacs prefix keys), it has a wildly useful rectangle selection mode, as well as convenient indent/outdent commands for the selected region.
- barrkel 13y agoI presume you say that because C-x and C-c don't act as cut and copy when there is no region, that there is no actual conflict? I use commands involving C-x and C-c with the region active fairly often; both because the command applies to the region, and also because I want to keep the region active while I do something else. I agree that CUA mode without binding the CUA keys is useful.
- JoshTriplett 13y ago> I presume you say that because C-x and C-c don't act as cut and copy when there is no region, that there is no actual conflict? I use commands involving C-x and C-c with the region active fairly often; both because the command applies to the region, and also because I want to keep the region active while I do something else. You can use C-x and C-c as prefixes even when there's a region, as long as you hit the subsequent key quickly; there's a brief timeout for exactly that purpose. You can also hit C-S-x or C-S-c.
- klibertp 13y agoC-c most definitely causes conflicts. It is where "mode-specific-keymap" lives, which is the default and conventional prefix for custom bindings. While it's near-empty by default, various modes bind things inside it. By the time I learned of CUA mode I a) got used to C-y/M-y/C-w/M-w; and b) already written "free-rectangle-mode" which gave me the same freedom of movement when selecting rectangles. It was one of my first emacs hacks :) Combined with rect-mark mode it would probably look very similarly to CUA rectangular selection, but I didn't feel the need for showing visual rectangle. Also default rectangle handling has a big advantage of starting both line and rectangle selections with the same key. Anyway, I'm not surprised people don't use CUA very much - I think that by the time they learn about it it's already too late for them :)