all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: 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 13:36:37 +0300	[thread overview]
Message-ID: <uhcdy2ksq.fsf@gnu.org> (raw)
In-Reply-To: <4809AC0F.8090904@gmail.com>

> 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.




  reply	other threads:[~2008-04-19 10:36 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 [this message]
2008-04-19 10:57       ` Lennart Borgman (gmail)

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=uhcdy2ksq.fsf@gnu.org \
    --to=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.
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.