all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: redefine C-h
Date: Sat, 09 Aug 2008 08:14:41 -0600	[thread overview]
Message-ID: <g7k8og$p3m$1@ger.gmane.org> (raw)
In-Reply-To: <6c2a4df0-eaa7-4617-9cb5-94f0ca4bd888@w7g2000hsa.googlegroups.com>

YSK wrote:
> C-h is a normally prefix key, but I want to bind 'backward-char-
> delete' to it. My .emacs has this:
> 
> (global-unset-key "\C-h")
> (global-set-key "\C-\M-h" 'help-command)
> (global-set-key [C-h] 'delete-backward-char)
> 
> I want to use C-M-h for help-command instead and use C-h for
> backspace. However...it's not working. C-h remains a prefix key. My
> understanding of prefix keys is basically nil, so there's probably
> something pretty basic I'm missing here. Would anyone here be kind
> enough to clue me in?

[C-h] is not the same thing as "\C-h".

Also, you need to (setq help-char ?\C-\M-h)

-- 
Kevin Rodgers
Denver, Colorado, USA





  parent reply	other threads:[~2008-08-09 14:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-08 17:13 redefine C-h YSK
2008-08-09  1:45 ` Joel J. Adamson 
2008-08-09 14:14 ` Kevin Rodgers [this message]
     [not found] ` <mailman.16197.1218291299.18990.help-gnu-emacs@gnu.org>
2008-08-09 16:00   ` YSK
2008-08-10 18:40     ` Xah
2008-08-11  1:10       ` YSK
2008-08-10 17:36 ` YSK
2008-08-11  0:41   ` Drew Adams
     [not found]   ` <mailman.16321.1218415295.18990.help-gnu-emacs@gnu.org>
2008-08-11  1:00     ` YSK
2008-08-11  4:07       ` Drew Adams

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='g7k8og$p3m$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --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.