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: wbosse
Subject: Re: Use of 'pause' as key prefix
Date: Mon, 05 Nov 2007 06:40:50 -0800
User-agent: G2/1.0

On 5 Nov., 14:39, Kenneth Jacker <k...@be.cs.appstate.edu> wrote:
> 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?  ;-)

The following snippet is from my ~/.emacs file

(defvar PauseMap nil "function keys with prefix [pause]")
(setq   PauseMap (make-keymap))
(define-key global-map [pause] PauseMap)
...
(define-key PauseMap "h" 'highlight-regexp-current-word)
...



reply via email to

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