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 14:08:34 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi Kenneth,

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

> I'm trying to use the 'pause' key as a prefix "character" so that I
> can bind functions to key sequences like "pause a", "pause b", etc.
>
> My efforts so far have failed (mainly elisp syntax errors).
> I could find no help in 'info' and/or "searching the web" ...
>
> Is this possible?  Suggestions on how to so define?

(defvar pause-map nil "Keybindings with Pause as prefix")
(define-prefix-command 'pause-map)

(global-set-key '[(pause)] 'pause-map)
(define-key pause-map '[(t)] '(lambda ()
                                (interactive)
                                (insert "Testing Pause Prefix")))


Note however, that I'm not really sure whether this is the supposed
way to do it. Maybe someone with deeper understanding of this could
enlighten us?

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]