News for hackers. Stuff that matters.
Re:Most frequently enabled Emacs packages by JoshTriplett on Monday December 09, 2013 @04:40AM (#6873543)
I'm surprised CUA mode isn't in the list.
Re:Most frequently enabled Emacs packages by barrkel on Monday December 09, 2013 @07:10AM (#6873936)
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.

Re:Most frequently enabled Emacs packages by JoshTriplett on Monday December 09, 2013 @12:12PM (#6875247)
CUA'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.
Re:Most frequently enabled Emacs packages by barrkel on Monday December 09, 2013 @12:37PM (#6875419)
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.

I agree that CUA mode without binding the CUA keys is useful.

Re:Most frequently enabled Emacs packages by JoshTriplett on Monday December 09, 2013 @01:01PM (#6875614)
> 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.

Re:Most frequently enabled Emacs packages by klibertp on Monday December 09, 2013 @12:39PM (#6875434)
C-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 :)

Re:Most frequently enabled Emacs packages by unhammer on Monday December 09, 2013 @04:50AM (#6873579)
I don't use full CUA unless I'm having other people type, but I do have this in my ~/.emacs:

    (when (fboundp 'cua-selection-mode)
      (setq cua-toggle-set-mark nil) ; o/w C-SPC doesn't set the mark if region-active-p
      (cua-selection-mode 1))
See http://trey-jackson.blogspot.no/2008/10/emacs-tip-26-cua-mod... for why cua-selection is awesome.