help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of 'pause' as key prefix


From: Stefan Kamphausen
Subject: Re: Use of 'pause' as key prefix
Date: Mon, 05 Nov 2007 15:40:00 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]