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

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

Re: Defining a new prefix key chord


From: Alan Mackenzie
Subject: Re: Defining a new prefix key chord
Date: Tue, 27 Apr 2004 14:31:08 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

Luis O. Silva <l.o.silva@mail.ru> 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").



reply via email to

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