* Changing keybinding of C-return under CUA mode
@ 2006-03-11 19:14 fcsaszar
2006-03-13 21:15 ` Peter Dyballa
[not found] ` <mailman.12.1142284529.30034.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: fcsaszar @ 2006-03-11 19:14 UTC (permalink / raw)
Hello,
I want to change the keybinding to start marking a rectangle in CUA
mode from C-return to C-.
But it seems that this keybinding cannot be unset with "M-x
global-unset-key" (after exceuting this, C-return continues working as
usual). Any idea on how to accomplish this?
I am using Emacs 22.0.50.1.
Thanks,
Felipe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing keybinding of C-return under CUA mode
2006-03-11 19:14 Changing keybinding of C-return under CUA mode fcsaszar
@ 2006-03-13 21:15 ` Peter Dyballa
[not found] ` <mailman.12.1142284529.30034.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2006-03-13 21:15 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 11.03.2006 um 20:14 schrieb fcsaszar@gmail.com:
> I want to change the keybinding to start marking a rectangle in CUA
> mode from C-return to C-.
>
> But it seems that this keybinding cannot be unset with "M-x
> global-unset-key" (after exceuting this, C-return continues working as
> usual). Any idea on how to accomplish this?
CUA uses 'private' keymaps:
(define-key cua--rectangle-keymap [(control return)] 'cua-clear-
rectangle-mark)
(define-key cua--region-keymap [(control return)] 'cua-toggle-
rectangle-mark)
--
Greetings
Pete
"I love deadlines. I love the whooshing noise they make as they go
by" (Douglas Adams)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing keybinding of C-return under CUA mode
[not found] ` <mailman.12.1142284529.30034.help-gnu-emacs@gnu.org>
@ 2006-03-14 0:51 ` fcsaszar
2006-04-09 4:50 ` fcsaszar
0 siblings, 1 reply; 5+ messages in thread
From: fcsaszar @ 2006-03-14 0:51 UTC (permalink / raw)
But for some reason, this also does not work. I added the following to
my .emacs:
(add-hook 'cua-mode-hook
'(lambda ()
(define-key cua--rectangle-keymap (kbd "C-.")
'cua-clear-rectangle-mark)
(define-key cua--region-keymap (kbd "C-.")
'cua-toggle-rectangle-mark)
)
)
And now says that C-. is undefined. Any ideas?
Thanks,
Felipe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing keybinding of C-return under CUA mode
2006-03-14 0:51 ` fcsaszar
@ 2006-04-09 4:50 ` fcsaszar
2006-04-09 22:14 ` Kim F. Storm
0 siblings, 1 reply; 5+ messages in thread
From: fcsaszar @ 2006-04-09 4:50 UTC (permalink / raw)
Finally, after some trial and error and the help of Kim F. Storm, it
worked. The code necessary is this:
(add-hook 'cua-mode-hook
'(lambda ()
(define-key cua--rectangle-keymap (kbd "C-.")
'cua-clear-rectangle-mark)
(define-key cua--region-keymap (kbd "C-.")
'cua-toggle-rectangle-mark)
(define-key cua-global-keymap (kbd "C-.")
'cua-set-rectangle-mark)
(define-key cua--rectangle-keymap [(control return)] nil)
(define-key cua--region-keymap [(control return)] nil)
(define-key cua-global-keymap [(control return)] nil)
)
)
(cua-mode t)
I am posting this here because it may be useful for others. Regards,
F.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Changing keybinding of C-return under CUA mode
2006-04-09 4:50 ` fcsaszar
@ 2006-04-09 22:14 ` Kim F. Storm
0 siblings, 0 replies; 5+ messages in thread
From: Kim F. Storm @ 2006-04-09 22:14 UTC (permalink / raw)
"fcsaszar@gmail.com" <fcsaszar@gmail.com> writes:
> Finally, after some trial and error and the help of Kim F. Storm, it
> worked. The code necessary is this:
> ...
> I am posting this here because it may be useful for others. Regards,
Actually, following you suggestion, this is much simpler with an
up-to-date CVS emacs:
M-x customize-option RET cua-rectangle-mark-key RET
Click on the input field, erase what's there and enter C-q C-.
Then click "Save for Future"...
--
Kim F. Storm http://www.cua.dk
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-04-09 22:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-11 19:14 Changing keybinding of C-return under CUA mode fcsaszar
2006-03-13 21:15 ` Peter Dyballa
[not found] ` <mailman.12.1142284529.30034.help-gnu-emacs@gnu.org>
2006-03-14 0:51 ` fcsaszar
2006-04-09 4:50 ` fcsaszar
2006-04-09 22:14 ` Kim F. Storm
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.