help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to change C-x prefix to C-k in a clean way?


From: Michael Heerdegen
Subject: Re: how to change C-x prefix to C-k in a clean way?
Date: Sun, 08 Mar 2009 16:05:43 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix)

Xah Lee <xahlee@gmail.com> writes:

> is there a way to remap all the C-x key to another, say C-k?
>
> I've been using this
> (keyboard-translate ?\C-t ?\C-x)
> for over 2 years (on dvorak. Dvorak t is qwerty k.)
>
> However, that does not stop C-x from working, and any keypress of C-k,
> regardless if it is the start of combination, will be remapped to C-x.
>
> What i really want is to remap C-x prefix to C-k, as if they are
> defined that way. (so that i can map Cut (kill-region) to C-x and not
> have to load the complex cua-mode)
>
> besides modifying every elisp file, is it possible to do this as a
> wrapper? Perhaps by modifying the global-map entry of C-x?
>
>   Xah
>http://xahlee.org/
>
>
Is that what you want?

(keyboard-translate ?\C-k ?\C-x)
(global-set-key [my-C-x] 'ignore)       ;bind like any other key
(keyboard-translate ?\C-x 'my-C-x)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]