* cua-mode overrides my C-z setting. How fix?
@ 2008-12-10 21:58 seberino
2008-12-11 3:53 ` Xah Lee
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: seberino @ 2008-12-10 21:58 UTC (permalink / raw)
To: help-gnu-emacs
I defined C-z to execute some commands like so:
(global-set-key "\^z" (make-sparse-keymap))
(global-set-key "\^zt" 'dired-other-window)
I noticed this doesn't work anymore when CUA mode is enabled.
How fix? (Can I just override this single mod of cua-mode and keep the
rest of cua-mode? :)
Chris
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cua-mode overrides my C-z setting. How fix?
2008-12-10 21:58 cua-mode overrides my C-z setting. How fix? seberino
@ 2008-12-11 3:53 ` Xah Lee
2008-12-11 5:59 ` Kevin Rodgers
2008-12-11 14:29 ` Scott Frazer
2 siblings, 0 replies; 4+ messages in thread
From: Xah Lee @ 2008-12-11 3:53 UTC (permalink / raw)
To: help-gnu-emacs
On Dec 10, 1:58 pm, "seber...@spawar.navy.mil"
<seber...@spawar.navy.mil> wrote:
> I defined C-z to execute some commands like so:
>
> (global-set-key "\^z" (make-sparse-keymap))
> (global-set-key "\^zt" 'dired-other-window)
>
> I noticed this doesn't work anymore when CUA mode is enabled.
• How To Reclaim Keybindings In Emacs
http://xahlee.org/emacs/ergonomic_emacs_keybinding_minibuffer.html
Note this is a FAQ ...
Xah
∑ http://xahlee.org/
☄
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cua-mode overrides my C-z setting. How fix?
2008-12-10 21:58 cua-mode overrides my C-z setting. How fix? seberino
2008-12-11 3:53 ` Xah Lee
@ 2008-12-11 5:59 ` Kevin Rodgers
2008-12-11 14:29 ` Scott Frazer
2 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2008-12-11 5:59 UTC (permalink / raw)
To: help-gnu-emacs
seberino@spawar.navy.mil wrote:
> I defined C-z to execute some commands like so:
>
> (global-set-key "\^z" (make-sparse-keymap))
> (global-set-key "\^zt" 'dired-other-window)
>
> I noticed this doesn't work anymore when CUA mode is enabled.
>
> How fix? (Can I just override this single mod of cua-mode and keep the
> rest of cua-mode? :)
Sort of:
,----[ C-h v cua-enable-cua-keys RET ]
| cua-enable-cua-keys is a variable defined in `cua-base.el'.
| Its value is t
|
|
| Documentation:
| *Enable using C-z, C-x, C-c, and C-v for undo, cut, copy, and paste.
| If the value is t, these mappings are always enabled. If the value is
| `shift', these keys are only enabled if the last region was marked with
| a shifted movement key. If the value is nil, these keys are never
| enabled.
|
| You can customize this variable.
|
| [back]
`----
So if you set that to `shift', you should be able to use C-z as you
wish but you'll have to use C-S-x, C-S-c, and C-S-v for cut, copy, and
paste.
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cua-mode overrides my C-z setting. How fix?
2008-12-10 21:58 cua-mode overrides my C-z setting. How fix? seberino
2008-12-11 3:53 ` Xah Lee
2008-12-11 5:59 ` Kevin Rodgers
@ 2008-12-11 14:29 ` Scott Frazer
2 siblings, 0 replies; 4+ messages in thread
From: Scott Frazer @ 2008-12-11 14:29 UTC (permalink / raw)
To: help-gnu-emacs
seberino@spawar.navy.mil wrote:
> I defined C-z to execute some commands like so:
>
> (global-set-key "\^z" (make-sparse-keymap))
> (global-set-key "\^zt" 'dired-other-window)
>
> I noticed this doesn't work anymore when CUA mode is enabled.
>
> How fix? (Can I just override this single mod of cua-mode and keep the
> rest of cua-mode? :)
>
> Chris
(define-key cua--cua-keys-keymap [(control z)] nil)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-12-11 14:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-10 21:58 cua-mode overrides my C-z setting. How fix? seberino
2008-12-11 3:53 ` Xah Lee
2008-12-11 5:59 ` Kevin Rodgers
2008-12-11 14:29 ` Scott Frazer
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).