From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: Defining a new prefix key chord Date: Tue, 27 Apr 2004 14:31:08 +0000 Organization: muc.de e.V. -- private internet access Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083088178 5858 80.91.224.253 (27 Apr 2004 17:49:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2004 17:49:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 27 19:49:23 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIWhu-0002gu-00 for ; Tue, 27 Apr 2004 19:49:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIWRS-0005QX-HD for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Apr 2004 13:32:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!newsfeed.stueberl.de!news.space.net!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1083086043 13210 193.149.49.134 (27 Apr 2004 17:14:03 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 27 Apr 2004 17:14:03 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:122765 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18053 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18053 Luis O. Silva wrote on Mon, 26 Apr 2004 09:47:42 -0600: > Dear Emacs community, > I'd like to know how to define a new prefix key similar to the > "\C-c" or "\C-x". I want to use "\s-l" as a prefix key (where > `\s' is super) and I'll be very grateful if you give me any > information for doing this globally and for a specific mode. You don't need to do anything special. Just bind a key sequence which starts with "\s-l", and Emacs will create all the necessary intermediate keymaps. For example, (global-set-key [?\s-l ?r] 'revert-buffer) > I can bind commands to key chords with super using [?\s-s], but > I have already few keys unbounded.I've also choice a prefix of > the form "\s-l" for mnemonic reasons. > Thank you very much in advance. > luis -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a").