all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Visher <tim.visher@gmail.com>
To: gebser@mousecar.com
Cc: GNU Emacs List <help-gnu-emacs@gnu.org>
Subject: Re: create new key prefix
Date: Tue, 19 Feb 2013 20:20:34 -0500	[thread overview]
Message-ID: <CAHa53uy+ntCT1Z5zM64L=U72A=1tYHkGUD3TSc2re+R3VcZLpw@mail.gmail.com> (raw)
In-Reply-To: <51240A2C.7070206@mousecar.com>

Hi Ken,

On Tue, Feb 19, 2013 at 6:26 PM, ken <gebser@mousecar.com> 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	other threads:[~2013-02-20  1:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-19 23:26 create new key prefix ken
2013-02-20  1:20 ` Tim Visher [this message]
2013-02-20  1:36   ` ken
2013-02-20  1:41     ` Tim Visher
2013-02-20  9:35       ` ken
2013-02-20 17:44         ` Tim Visher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHa53uy+ntCT1Z5zM64L=U72A=1tYHkGUD3TSc2re+R3VcZLpw@mail.gmail.com' \
    --to=tim.visher@gmail.com \
    --cc=gebser@mousecar.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.