From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wbosse@metzler.com Newsgroups: gmane.emacs.help Subject: Re: Use of 'pause' as key prefix Date: Mon, 05 Nov 2007 06:40:50 -0800 Organization: http://groups.google.com Message-ID: <1194273650.754636.9030@o38g2000hse.googlegroups.com> References: <873avkuaan.fsf@be.cs.appstate.edu> <85ir4glu0d.fsf@usenet.my.skamphausen.de> <87y7dcsteh.fsf@be.cs.appstate.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: ger.gmane.org 1194282096 8166 80.91.229.12 (5 Nov 2007 17:01:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2007 17:01:36 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 05 18:01:40 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ip5KB-0006kv-Ru for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Nov 2007 18:01:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ip5K0-0006Vf-B2 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Nov 2007 12:01:08 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!o38g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 213.61.242.146 Original-X-Trace: posting.google.com 1194273651 27524 127.0.0.1 (5 Nov 2007 14:40:51 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 5 Nov 2007 14:40:51 +0000 (UTC) In-Reply-To: <87y7dcsteh.fsf@be.cs.appstate.edu> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; U; de; rv:1.8.0) Gecko/20060728 Firefox/1.5.0 Opera 9.23,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o38g2000hse.googlegroups.com; posting-host=213.61.242.146; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:153552 X-Mailman-Approved-At: Mon, 05 Nov 2007 12:00:18 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49038 Archived-At: On 5 Nov., 14:39, Kenneth Jacker 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) ...