help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Best practice for overriding keybinding of a minor mode?


From: jpkotta
Subject: Re: Best practice for overriding keybinding of a minor mode?
Date: Thu, 1 Oct 2009 08:45:51 -0700 (PDT)
User-agent: G2/1.0

On Sep 30, 4:42 pm, Andreas Politz <poli...@fh-trier.de> wrote:
> jpkotta <jpko...@gmail.com> writes:
> > On Sep 28, 4:54 pm, Samuel Wales <samolog...@gmail.com> wrote:
> >> local-unset-key
>
> >> --
> >> Myalgic encephalomyelitis causes death (Jason et al. 2006)
> >> and severe suffering.  Conflicts of interest are destroying
> >> research.  What people "know" is wrong.  Silence = 
> >> death.http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm
> [...]
> > After reading the manual, it seems like there is
> > no way to recover a remapped command.  Is this true or am I
> > overlooking something?  Is ido being heavy-handed here, and should not
> > be using remap?
>
> (define-key keymap [remap command-name] nil)
>
> or
>
> (define-key keymap [remap command-name] command-name)
>
> Both seem to do the trick.
>

Thanks, I needed to remap to nil _and_ redefine the key.


reply via email to

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