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

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

Re: create new key prefix


From: Tim Visher
Subject: Re: create new key prefix
Date: Tue, 19 Feb 2013 20:20:34 -0500

Hi Ken,

On Tue, Feb 19, 2013 at 6:26 PM, ken <address@hidden> wrote:
> I've defined quite a few new keys over the years and so would like to create
> a new key prefix.  I.e., I want to be able to define keys such as "C-c p s",
> "C-c p m", etc.  So how do I tell emacs that (for all possible modes) I want
> "C-c p" to look for the new key definitions.
>
> From what I've read so far, how this is done depends a lot on the particular
> emacs version.  Mine's 22.1.1.

`(global-set-key (kbd "C-c p m") 'func-name)` doesn't work for you?
The caveat to that is that modes down the line can possible shadow the
binding. But that's easy enough to solve with `(eval-after-load…`
forms.

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail



reply via email to

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