[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customizing key bindings
From: |
Stefan Monnier |
Subject: |
Re: Customizing key bindings |
Date: |
Mon, 09 Sep 2002 18:58:21 -0400 |
> (defun custom-add-key (sym key def)
> "Add KEY to the keymap stored in SYM with definition DEF.
> The shadowed binding is stored, if none has been stored before. The
> shadowed bindings are stored in the custom-bindings-shadow property."
> (let* ((map (symbol-value sym))
> (old-binding (lookup-key map key))
Note that
(progn
(define-key map key '(menu-item "foo" a))
(lookup-key map key)) => a
This should not be too harmful in practice, tho.
Stefan
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), (continued)
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Per Abrahamsen, 2002/09/07
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Alex Schroeder, 2002/09/07
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Per Abrahamsen, 2002/09/07
- Re: Customizing key bindings, Alex Schroeder, 2002/09/07
- Re: Customizing key bindings, Alex Schroeder, 2002/09/07
- Re: Customizing key bindings, Alex Schroeder, 2002/09/07
- Re: Customizing key bindings, Per Abrahamsen, 2002/09/07
- Re: Customizing key bindings, Alex Schroeder, 2002/09/09
- Re: Customizing key bindings, Alex Schroeder, 2002/09/09
- Re: Customizing key bindings, Alex Schroeder, 2002/09/09
- Re: Customizing key bindings,
Stefan Monnier <=
- Re: Customizing key bindings, Per Abrahamsen, 2002/09/10
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Richard Stallman, 2002/09/08
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Per Abrahamsen, 2002/09/09
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Richard Stallman, 2002/09/09
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Alex Schroeder, 2002/09/10
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Richard Stallman, 2002/09/10
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Per Abrahamsen, 2002/09/11
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Richard Stallman, 2002/09/11
- Re: Customizing key bindings (was: Re: [CVS] f7, f8 bound..), Alex Schroeder, 2002/09/09
Re: [CVS] f7, f8 bound.., Richard Stallman, 2002/09/01