From: Lennart Borgman <lennart.borgman@gmail.com>
To: Markus Haider <markus.haider@uibk.ac.at>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Using ergonomic shortcuts and cua mode
Date: Sat, 17 Apr 2010 02:18:53 +0200 [thread overview]
Message-ID: <j2me01d8a51004161718i394657bao7da42d6fe0bb32a4@mail.gmail.com> (raw)
In-Reply-To: <1271423846.27719.19.camel@ast8.uibk.ac.at>
On Fri, Apr 16, 2010 at 3:17 PM, Markus Haider <markus.haider@uibk.ac.at> wrote:
> Hi,
>
> I use Emacs 23 with the ergonomic shortcuts
> http://xahlee.org/emacs/ergonomic_emacs_keybinding.html
> However, when I also use cua-mode at the same time, M-v gets bound to
> cua-repeat-replace-region. Is there a way to keep M-v bound to yank?
>
> One possible solution would be to work without cua-mode, and I could
> manually define the shortcuts C-c, C-v, C-x. However I cannot change C-x
> via global-set-key as it is a prefix. I would not mind to move the
> Control-X-prefix to another key, but I don't know how to do it...
I think you can undefine M-v in the cua keymap where it is defined, like this:
(define-key cua--cua-keys-keymap [(meta ?v)] nil)
Tip: In nXhtml there is a modified version of the normal "C-h c" help
that shows the key binding + the key map where it is bound. This
latter is a guess, but most of the time it is correct. I bind this
command to "f1 c":
<f1> c runs the command describe-key-and-map-briefly, which is an
interactive compiled Lisp function in `ourcomments-util.el'.
next prev parent reply other threads:[~2010-04-17 0:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-16 13:17 Using ergonomic shortcuts and cua mode Markus Haider
2010-04-17 0:18 ` Lennart Borgman [this message]
[not found] ` <1271490463.2011.1.camel@james-desktop>
2010-04-17 13:54 ` Lennart Borgman
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=j2me01d8a51004161718i394657bao7da42d6fe0bb32a4@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=markus.haider@uibk.ac.at \
/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).