From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: how to change C-x prefix to C-k in a clean way?
Date: Sun, 08 Mar 2009 16:05:43 +0100 [thread overview]
Message-ID: <vs77i30f41k.fsf@pax07e3.mipool.uni-jena.de> (raw)
In-Reply-To: 9f26e1db-d03a-47f8-a0ad-66d42d504df1@33g2000yqm.googlegroups.com
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)
next prev parent reply other threads:[~2009-03-08 15:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-07 3:27 how to change C-x prefix to C-k in a clean way? Xah Lee
2009-03-07 5:21 ` Teemu Likonen
2009-03-07 23:19 ` Xah Lee
2009-03-10 13:02 ` Alan Mackenzie
2009-03-10 18:42 ` Johan Bockgård
2009-03-10 22:50 ` Raoul Gough
2009-03-08 15:05 ` Michael Heerdegen [this message]
2009-03-11 15:36 ` rustom
2009-03-11 21:31 ` Xah Lee
2009-03-12 17:45 ` prad
-- strict thread matches above, loose matches on Subject: below --
2009-03-12 13:40 Rustom Mody
[not found] <mailman.3015.1237105221.31690.help-gnu-emacs@gnu.org>
2009-03-16 5:18 ` B. T. Raven
2009-03-16 13:17 ` rustom
2009-03-20 4:07 ` Xah Lee
2009-03-20 10:53 ` Rupert Swarbrick
2009-03-20 7:49 Rustom Mody
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vs77i30f41k.fsf@pax07e3.mipool.uni-jena.de \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
/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.
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.