From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: C-mode blows away may Ctrl-C binding with a prefix -- how to remap prefix?
Date: Sat, 19 Apr 2008 12:57:49 +0200 [thread overview]
Message-ID: <4809D02D.6030808@gmail.com> (raw)
In-Reply-To: <uhcdy2ksq.fsf@gnu.org>
Eli Zaretskii wrote:
>> Date: Sat, 19 Apr 2008 10:23:43 +0200
>> From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
>>
>> David Hansen wrote:
>>> On Fri, 18 Apr 2008 11:18:20 -0700 (PDT) lindahlb@hotmail.com wrote:
>>>
>>>> I'm currently using Windows-esque key bindings for copy (Ctrl-c), cut
>>>> (Ctrl-x) and paste (Ctrl-v). They work fine, except when I open a C/C+
>>>> + file. In the major mode, it remaps the (Ctrl-c) key to a keymap
>>>> prefix. I want to remap this keymap prefix to another key and return
>>>> the (Ctrl-c) mapping to my own copy command. How do I do this?
>>>>
>>>> I currently have a c-mode customization hook, but couldn't figure out
>>>> how to do it there. Here is what I tried:
>>>> (define-key c-mode-base-map "\C-c" 'smart-copy)
>>> Pretty all major modes use C-c as a prefix. Better get used to the
>>> `real' key bindings.
>>
>> If cua-mode does not work as expected it is a bug in Emacs.
>
> But I don't think the OP uses CUA Mode. I think he simply rebinds C-c,
> C-v, C-x, etc. to the copy/cut/paste functions.
Yes, you are probably right. Then the solution might simply be to use
cua-mode.
prev parent reply other threads:[~2008-04-19 10:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-18 18:18 C-mode blows away may Ctrl-C binding with a prefix -- how to remap prefix? lindahlb
2008-04-18 21:30 ` lindahlb
2008-04-18 21:37 ` lindahlb
2008-04-19 7:17 ` David Hansen
2008-04-19 8:23 ` Lennart Borgman (gmail)
2008-04-19 10:36 ` Eli Zaretskii
2008-04-19 10:57 ` Lennart Borgman (gmail) [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4809D02D.6030808@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=eliz@gnu.org \
--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.
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).