From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: managing my keybindings Date: Sat, 8 May 2010 04:09:21 +0200 Message-ID: References: <89f1a7ef-b8e5-41e9-8571-17ef186b78b4@e1g2000yqe.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1273284614 10056 80.91.229.12 (8 May 2010 02:10:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 8 May 2010 02:10:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: LanX Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 08 04:10:13 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 1OAZUa-0000fi-MH for geh-help-gnu-emacs@m.gmane.org; Sat, 08 May 2010 04:10:13 +0200 Original-Received: from localhost ([127.0.0.1]:34571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAZUZ-0001mD-QT for geh-help-gnu-emacs@m.gmane.org; Fri, 07 May 2010 22:10:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OAZUA-0001m7-Tl for help-gnu-emacs@gnu.org; Fri, 07 May 2010 22:09:46 -0400 Original-Received: from [140.186.70.92] (port=44929 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OAZU8-0001ly-Mn for help-gnu-emacs@gnu.org; Fri, 07 May 2010 22:09:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OAZU7-0006O2-6d for help-gnu-emacs@gnu.org; Fri, 07 May 2010 22:09:44 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:34902) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OAZU7-0006Ng-1e for help-gnu-emacs@gnu.org; Fri, 07 May 2010 22:09:43 -0400 Original-Received: by fxm7 with SMTP id 7so415964fxm.0 for ; Fri, 07 May 2010 19:09:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=NEJbdMpb8PiBi4JA3E3vBZSOqQZHXHM71XbWWrHbWDA=; b=PS2AerhOdB3jDgSb0faJOX+u0Di6V56n4UiXAHFFaRS5Q72gzakab43Hfh/PHenohJ MmgSitE5uI5c3ksLlzIawxyV45nJwjOokD1pTG6GkbidJRBa0Sq/u3RiQ59+FAHsRHKa 0Lkr08ImZ5fKT14EMA14BKx78M73i3PJN9ZpQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=LlhfLU+cXeTWrZTyJ0bB5qUP0N0lFBDC0hubkO84V7UG0olnxc92V36pH7G3lxrou+ LlUMr0WHoB9Z3tTiGzcQrnmP12ncClGxvv3/J+h7l48S+J18SF4L+Dc4jZ+f9KKCC0j+ orGmjPXkbr34JGE8XGAU+ohCHwN63BVIflZwE= Original-Received: by 10.239.155.134 with SMTP id i6mr77505hbc.1.1273284581117; Fri, 07 May 2010 19:09:41 -0700 (PDT) Original-Received: by 10.239.164.81 with HTTP; Fri, 7 May 2010 19:09:21 -0700 (PDT) In-Reply-To: <89f1a7ef-b8e5-41e9-8571-17ef186b78b4@e1g2000yqe.googlegroups.com> 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:73570 Archived-At: On Sat, May 8, 2010 at 2:38 AM, LanX wrote: > Hi > > I'm looking for suggestions how to manage my keybindings. > > I would like to: > > a) list them (only *my* keybindings) Use define-minor-mode and make a global minor mode. Define your key bindings there. > b) easily navigate to the place where they are defined Define them in one place. > c) attach documentation =C2=A0to them Documentation are bound to functions, not key bindings. (You can add comments where you bind the keys, of course.) > d) warn me about conflicts Use what is said in "Key binding conventions", see M-: (info "(elisp) Key binding conventions") > my first idea is to create wrapper functions/macros =C2=A0`my-global-set- > key' and `my-local-set-key' which buffer the necessary informations > when defining the bindings. > > But chances are high that I'm reinventing the wheel, so please gimme > some ideas! 8) > > Cheers > =C2=A0Rolf > > PS: another "brute force" approach would be creating an extra > function starting with "mykey-" for every keybinding. I could list > them by this naming convention and navigate to the files ... well not > too elegant... >