From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: unassigning cntl-Z in cua mode
Date: Mon, 23 Mar 2015 19:04:02 +0100 [thread overview]
Message-ID: <87k2y71tgt.fsf@debian.uxu> (raw)
In-Reply-To: mailman.2569.1427085318.31049.help-gnu-emacs@gnu.org
Stuart McGraw <smcg4191@frii.com> writes:
> I have recently started using CUA mode and it is ok
> except for one thing... I don't like having cntl-z
> mapped to undo. I run emacs in a terminal window
> (emacs -nw) a lot and routinely need to suspend
> emacs with cntl-z, do something in the shell, then
> resume emacs.
If you are a terminal, 'emacs -nw' and shell user are
you sure you want Cua-mode? If you take a look on the
keyboard and see where the kill and yank keys are
positioned you see they are closer, and therefore
faster and more ergonomic than the "Cua" keys, which
is also important to your thinking. So if you dont
"mind", using the kill and yank keys will in time make
you take an interest in the mechanics of the kill ring
which is a very practical tool when writing tons of
data and text and code everyday (and especially every
night). In time, you will want all that functionality
anyway so then you'll have a hybrid between the
standard kill/yank keys and the kill/yank keys that
aren't covered by the Cua keys.
As for suspending Emacs, instead of doing that, have
a tabbed terminal (urxvt had a Perl module for this,
I remember) or have several windows in X, plus
a window manager so you can switch quickly: e.g.,
Openbox and then just M-TAB (in Emacs notation) to
iterate the windows. Or, if you want to stick with one
window, use tmux with different panes that are easily
switched between (some people use screen for that).
Or, do
M-x shell RET
and do the shell work in Emacs as well.
> How can I undo the mapping the CUA mode applies to
> the cntl-z key? I am elisp-illiterate so a cut and
> paste solution would be greatly appreciated.
I'm sure you have already received help, so I won't
tell you again, instead, why not "start stopping"
being an Elisp illiterate right now by picking apart
the (very simple) form you got, to understand what it
does. Baby steps first. It is a very good way of
acquiring LISP because you do simple and useful things
that work, and then you continue, all the while
increasing the complexity (or quantity at least).
So you learn LISP not to learn LISP but while
sharpening your tools and increasing your
understanding of them. Make it work, by outworking
the opposition!
> Emacs 24.4 on Fedora 21 if it matters.
I don't think it should matter unless the Cua-mode
changed dramatically since a previous version.
The distribution do not matter, it is rather the
terminal emulator that matters because that intercepts
the keystroke before Emacs can do anything with it.
For example, C-z doesn't do what you describe for me,
neither in the Linux VTs nor in X with xterm. I don't
remember configuring that, but there have been so many
configurations. `suspend-frame' is related for the
dreamer and digger.
--
underground experts united
next parent reply other threads:[~2015-03-23 18:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2569.1427085318.31049.help-gnu-emacs@gnu.org>
2015-03-23 18:04 ` Emanuel Berg [this message]
2015-03-23 23:00 ` unassigning cntl-Z in cua mode Emanuel Berg
2015-03-23 4:21 Stuart McGraw
2015-03-23 4:44 ` Alexis
2015-03-23 4:54 ` Stuart McGraw
2015-03-23 5:05 ` Alexis
2015-03-23 5:19 ` Stuart McGraw
2015-03-23 5:39 ` Alexis
2015-03-23 5:58 ` Stuart McGraw
2015-03-23 6:05 ` Alexis
2015-03-23 4:55 ` Drew Adams
2015-03-23 4:59 ` Stuart McGraw
2015-03-23 13:27 ` Drew Adams
2015-03-23 15:41 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2y71tgt.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).