all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Oleksandr Gavenko'" <gavenkoa@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Are there exist any registry for reserved key binding?
Date: Fri, 11 Nov 2011 16:03:46 -0800	[thread overview]
Message-ID: <D1AF97F9389D455ABC0835A5E65BC068@us.oracle.com> (raw)
In-Reply-To: <B3517D07351643C0BE732C610B13CC36@us.oracle.com>

> > When I make own mode I would like to select key bindings 
> > that does not interference with most other packages/modes.
> > What are the best practice/recommendations to archive this goal?
> 
> (elisp) `Key Binding Conventions'

BTW, in Info, `i' is your friend.  It looks things up in the index, providing
completion.  You could have found this information yourself by:

1. Guessing that it was in the Elisp manual somewhere.
2. Using `i' in that manual, then typing `key TAB'.

For #2 you would have seen "key binding, conventions for" as one of the
completion candidates.  Simple.

---

Even easier -

If you used Icicles, you could have just typed `convention' or `key' and hit
`S-TAB' for apropos completion.  And you could have typed either `key S-SPC
convention' or `convention S-SPC key' to get the right candidate directly.

`S-SPC' means "Narrow the set of current completion candidates to those that
also match...".  You can combine as many completion patterns as you like this
way, progressively narrowing the set of candidates.  That's much, much easier
than trying to come up with a fancy pattern (e.g. a single regexp) that matches
only the same small set of candidates.
http://www.emacswiki.org/emacs/Icicles_-_Progressive_Completion

You can also use `C-~' to subtract a set of matches - another way to narrow the
set of candidates.
http://www.emacswiki.org/emacs/Icicles_-_Nutshell_View#ChippingAway




  reply	other threads:[~2011-11-12  0:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-11 23:33 Are there exist any registry for reserved key binding? Oleksandr Gavenko
2011-11-11 23:45 ` Drew Adams
2011-11-12  0:03   ` Drew Adams [this message]
2011-11-12 12:00   ` Oleksandr Gavenko
2011-11-12 14:51     ` Drew Adams

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=D1AF97F9389D455ABC0835A5E65BC068@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=gavenkoa@gmail.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.