all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using ergonomic shortcuts and cua mode
@ 2010-04-16 13:17 Markus Haider
  2010-04-17  0:18 ` Lennart Borgman
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Haider @ 2010-04-16 13:17 UTC (permalink / raw)
  To: help-gnu-emacs

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...

Thank you for your help,
Greetings
Markus





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Using ergonomic shortcuts and cua mode
  2010-04-16 13:17 Using ergonomic shortcuts and cua mode Markus Haider
@ 2010-04-17  0:18 ` Lennart Borgman
       [not found]   ` <1271490463.2011.1.camel@james-desktop>
  0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2010-04-17  0:18 UTC (permalink / raw)
  To: Markus Haider; +Cc: help-gnu-emacs

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'.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Using ergonomic shortcuts and cua mode
       [not found]   ` <1271490463.2011.1.camel@james-desktop>
@ 2010-04-17 13:54     ` Lennart Borgman
  0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman @ 2010-04-17 13:54 UTC (permalink / raw)
  To: Markus Haider, emacs help

You could try binding ctl-x-map to a new key and removing it from Ctrl-X.


On Sat, Apr 17, 2010 at 9:47 AM, Markus Haider
<markus.haider@student.uibk.ac.at> wrote:
> Thank you very much, (define-key cua--cua-keys-keymap [(meta ?v)] nil)
> worked.
>
> Do you also know how I could move the C-x prefix to a different
> combination?
>
> Greetings,
> Markus
>
> Am Samstag, den 17.04.2010, 02:18 +0200 schrieb Lennart Borgman:
>> 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'.
>>
>>
>
>
>




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-17 13:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-16 13:17 Using ergonomic shortcuts and cua mode Markus Haider
2010-04-17  0:18 ` Lennart Borgman
     [not found]   ` <1271490463.2011.1.camel@james-desktop>
2010-04-17 13:54     ` Lennart Borgman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.