all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: C++-mode is assign to a key that I want to use.
Date: Wed, 03 May 2006 16:40:48 -0600	[thread overview]
Message-ID: <e3bbi7$imm$1@sea.gmane.org> (raw)
In-Reply-To: <1146690370.020954.125400@i39g2000cwa.googlegroups.com>

pookiebearbottom@yahoo.com wrote:
> C++-mode is assigning to the key C-c C-B (c-submit-bug-report).  I want
> to use it for something else.

The Keymaps node of the Emacs manual explains that `C-c b' or `C-c B'
would avoid that:

|    As a user, you can redefine any key; but it is usually best to stick
| to key sequences that consist of `C-c' followed by a letter (upper or
| lower case).  These keys are "reserved for users," so they won't
| conflict with any properly designed Emacs extension.  The function keys
| <F5> through <F9> are also reserved for users.  If you redefine some
| other key, your definition may be overridden by certain extensions or
| major modes which redefine the same key.

> Any ideas how to override it?  I tried
> to do it by:
> putting:
>  (global-set-key [(control c) (control b)] 'bury-buffer)
> in my
> "my-c-mode-common-hook"
> 
> and then doing:
> (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
> 
> but no dice (I also have a (global-set-key [(control c) (control b)]
> 'bury-buffer) in the main part of .emacs)

If you want to override the local key binding in C mode, you need to
call local-set-key instead of global-set-key.

-- 
Kevin

      reply	other threads:[~2006-05-03 22:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-03 21:06 C++-mode is assign to a key that I want to use pookiebearbottom
2006-05-03 22:40 ` Kevin Rodgers [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='e3bbi7$imm$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /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.