[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: delete-selection-mode as default
From: |
Drew Adams |
Subject: |
RE: delete-selection-mode as default |
Date: |
Sat, 8 Sep 2018 20:33:18 -0700 (PDT) |
> It's notable that of the CUA-style bindings, one can rebind C-z to
> `undo' in Emacs without the same degree of conflict that the other CUA
> keys introduce; so you might consider:
>
> (global-set-key (kbd "C-z") #'undo)
>
> C-z is `suspend-frame' by default (which makes complete sense when
> Emacs is running in a terminal, so changing this default isn't an
> option IMO), but it's a convenient key to *intentionally* re-purpose
> if you know how to `suspend-frame' without it (n.b. C-x C-z is also
> provided by default). Because it's such a fundamental behaviour,
> AFAIK no other default keymaps touch this key sequence.
>
> Or you could pick any other convenient `undo' binding, of course
> (but even then you might still change C-z. I use C-z as a prefix
> key, with C-z C-z as `suspend-frame', which I find provides me with
> a very useful additional prefix for custom bindings.)
One of the reasons I'm not a fan of `cua-mode' for Emacs is that
it wastes good prefix keys (C-x, C-c ). (Yes, I know that `cua-mode'
can accommodate to some extent this by way of timing, but that's
not good UI, IMO.)
I think C-z is wasted on a single action not only in `cua-mode' but
also in vanilla Emacs. It makes sense to use it as either a prefix key
or at least as a key that can be used for actions that are repeatable
(by holding down the key).
That said, for my own use I haven't bothered to use C-z as a
prefix key or for a repeatable command. I use it to thumbify
and dethumbify a frame (like iconify deiconify). But for
Emacs I think it should be used as stated above, not wasted
on `suspend-frame'.
- Re: delete-selection-mode as default (WAS: Some developement questions), (continued)
Re: delete-selection-mode as default (WAS: Some developement questions), Richard Stallman, 2018/09/11
Re: delete-selection-mode as default (WAS: Some developement questions), Bingo, 2018/09/08
Re: delete-selection-mode as default, Bingo, 2018/09/08
Re: delete-selection-mode as default, hw, 2018/09/10