all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: One more time: binding overwrite-mode to Apple kbd
Date: Sun, 16 Jul 2006 19:16:53 +0200	[thread overview]
Message-ID: <878xmtv5a2.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: e9do7h$sbe$1@reader2.panix.com

kj <socyl@987jk.com.invalid> writes:

> Apple keyboards apparently don't have an <insert> key (mine certainly
> doesn't), which is a pain when one wants to toggle overwrite-mode.
> Searching online I've found claims that the <help> key in these
> keyboards serves as the <insert> key, but when I use it in Emacs,
> the <help> key produces the help- prefix (reasonably enough); i.e.
> it is equivalent to hitting C-h.  I'd be perfectly happy to jettison
> this functionality, since I find C-h convenient enough.  I am
> assuming that the <help> key emits a different code from what's
> sent by C-h.  I have two questions: 1) can this raw *keyboard code*
> be bound to an Emacs command? 

Yes.

> and if yes, 2) how do I determine
> what this code is?

You don't need to.

Just evaluate (and put in your ~/.emacs):

   (global-set-key (kbd "<help>") (function overwrite-mode))

> The situation on my MacBook portable's keyboard is even worse: it
> doesn't even have a <help> key.  I suppose I'll just bind C-c i to
> overwrite-mode.  

   (global-set-key (kbd "C-c i") (function overwrite-mode))

> Any better ideas?

No.

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this product, in any
manner whatsoever, will increase the amount of disorder in the
universe. Although no liability is implied herein, the consumer is
warned that this process will ultimately lead to the heat death of
the universe.

  reply	other threads:[~2006-07-16 17:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-16 16:07 One more time: binding overwrite-mode to Apple kbd kj
2006-07-16 17:16 ` Pascal Bourguignon [this message]
2006-07-16 18:39   ` kj
2006-07-16 18:59     ` Peter Dyballa
     [not found]     ` <mailman.4146.1153076350.9609.help-gnu-emacs@gnu.org>
2006-07-18 20:35       ` bmovies
2006-07-18 21:26         ` Peter Dyballa
2006-07-17  8:44 ` don provan
2006-07-17 10:58   ` Mathias Dahl
2006-07-17 12:48     ` kj
2006-07-17 13:56       ` David Kastrup
2006-07-19 19:02         ` Slawomir Nowaczyk
2006-07-20 22:31           ` Kevin Rodgers
2006-07-21  1:11             ` Slawomir Nowaczyk
2006-07-17 19:30       ` don provan

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=878xmtv5a2.fsf@thalassa.informatimago.com \
    --to=pjb@informatimago.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.