From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: Re: managing my keybindings Date: Sat, 8 May 2010 14:22:14 +0200 Message-ID: References: <89f1a7ef-b8e5-41e9-8571-17ef186b78b4@e1g2000yqe.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001485f270ead38e890486143915 X-Trace: dough.gmane.org 1273321377 2694 80.91.229.12 (8 May 2010 12:22:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 8 May 2010 12:22:57 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Lennart Borgman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 08 14:22:54 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OAj3R-0002cv-KZ for geh-help-gnu-emacs@m.gmane.org; Sat, 08 May 2010 14:22:49 +0200 Original-Received: from localhost ([127.0.0.1]:53538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAj3Q-0007GE-Pf for geh-help-gnu-emacs@m.gmane.org; Sat, 08 May 2010 08:22:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OAj32-0007G9-Jh for help-gnu-emacs@gnu.org; Sat, 08 May 2010 08:22:24 -0400 Original-Received: from [140.186.70.92] (port=59323 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAj30-0007G1-DZ for help-gnu-emacs@gnu.org; Sat, 08 May 2010 08:22:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OAj2u-0000gR-SN for help-gnu-emacs@gnu.org; Sat, 08 May 2010 08:22:22 -0400 Original-Received: from fg-out-1718.google.com ([72.14.220.158]:53788) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OAj2u-0000g8-Ct for help-gnu-emacs@gnu.org; Sat, 08 May 2010 08:22:16 -0400 Original-Received: by fg-out-1718.google.com with SMTP id e12so1484030fga.12 for ; Sat, 08 May 2010 05:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=kFf+xCdZXZzb3VcRY9Qb4PS6BMKrUnYBmnPU257jGLY=; b=hVVCpbJQGR+VFGcZvlcpniKgKlvd4wlvc9dH7tCR8kvg9K8xm5QNBbPqaalbKx3ZBL OzvbSmq0gbhd5lQMGE2fqw9sX3lW+cZEF5pxh7CoeiwhXpfkYT4uNDAPdWRt2qDSbFDk HQB6IgoQRwEjDcYmPFRSspnPaLL9W64zhpruA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=RTHacIxQ5d16BDaATUV/JfGZu5nYh8MbnNE5E+NvGtg+byjOmE2L31R6wE2jefd8ca CA83PvFvU3hvCHsuWY2p8IQfDb8ERUiGgUHiVnizKKG/AY6WI1rshF8RTaJR1qoBSsPm SQXBbkzhH3K2yfzXMYK0ss8tkQwqnBmQemtgU= Original-Received: by 10.239.163.9 with SMTP id n9mr131653hbd.127.1273321334475; Sat, 08 May 2010 05:22:14 -0700 (PDT) Original-Received: by 10.239.186.67 with HTTP; Sat, 8 May 2010 05:22:14 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73574 Archived-At: --001485f270ead38e890486143915 Content-Type: text/plain; charset=ISO-8859-1 Hi Lennart > > Use define-minor-mode and make a global minor mode. Define your key > bindings there. > > Thanks define-minor-mode is an idea ... but IMHO wouldn't help when extending major-mode keybindings ... > > > c) attach documentation to them > > Documentation are bound to functions, not key bindings. (You can add > comments where you bind the keys, of course.) > > actually according to `define-key' documentation the DEF part in a keymap can hold much more than just a command, such that it should be possible to associate meta informations to a key binding. Cheers Rolf --001485f270ead38e890486143915 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Lennart

Use define-minor-mode and make a global minor mode. Define your key bindings there.


Thanks define-minor-mode = is an idea ... but IMHO wouldn't help when extending major-mode keybind= ings ...
=A0

> c) attach documentation =A0to them

Documentation are bound to functions, not key bindings. (You can add<= br> comments where you bind the keys, of course.)


actually according to `de= fine-key' documentation the DEF part in a keymap can hold much more tha= n just a command, such that it should be possible to associate meta informa= tions to a key binding.

=A0
Cheers
=A0 Rolf
--001485f270ead38e890486143915--