[Top][All Lists]

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

Re: managing my keybindings

From: Lennart Borgman
Subject: Re: managing my keybindings
Date: Sat, 8 May 2010 04:09:21 +0200

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  to 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  `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
>  Rolf
> 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...

reply via email to

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