unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Kamphausen <skampi@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Use of 'pause' as key prefix
Date: Mon, 05 Nov 2007 15:40:00 +0100	[thread overview]
Message-ID: <85wsswkb7j.fsf@usenet.my.skamphausen.de> (raw)
In-Reply-To: 87y7dcsteh.fsf@be.cs.appstate.edu

Kenneth Jacker <khj@be.cs.appstate.edu> writes:

> Wow, thanks Stefan, for the fast reply!
>
>   sk> (defvar pause-map nil "Keybindings with Pause as prefix")
>   sk> (define-prefix-command 'pause-map)
>
>   sk> (global-set-key '[(pause)] 'pause-map)
>   sk> (define-key pause-map '[(t)] '(lambda ()
>   sk> 				(interactive)
>   sk> 				(insert "Testing Pause Prefix")))
>
>
> Sorry, but I don't understand how to use the above to define
> additional associations using 'pause-map', e.g., "pause a", "pause b",
> etc.  Maybe time for me to RTFM?  ;-)

Does

(define-key pause-map '[(a)] '(lambda ()
				(interactive)
				(insert "pause a pressed")))
(define-key pause-map '[(b)] '(lambda ()
				(interactive)
				(insert "pause b pressed")))


help?

Regards
Stefan
-- 
Stefan Kamphausen --- http://www.skamphausen.de
a blessed +42 regexp of confusion (weapon in hand)
You hit. The format string crumbles and turns to dust.

  reply	other threads:[~2007-11-05 14:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-05 12:49 Use of 'pause' as key prefix Kenneth Jacker
2007-11-05 13:08 ` Stefan Kamphausen
2007-11-05 13:39   ` Kenneth Jacker
2007-11-05 14:40     ` Stefan Kamphausen [this message]
2007-11-05 15:02       ` Kenneth Jacker
2007-11-05 14:40     ` wbosse
2007-11-05 15:05       ` Kenneth Jacker
2007-11-08 12:33   ` Kenneth Jacker
2007-11-09  4:46     ` Kevin Rodgers
2007-11-05 13:39 ` Johan Bockgård
2007-11-05 13:49   ` Kenneth Jacker

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=85wsswkb7j.fsf@usenet.my.skamphausen.de \
    --to=skampi@gmx.net \
    --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).