[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: F2
From: |
PJ Weisberg |
Subject: |
Re: F2 |
Date: |
Wed, 2 Mar 2011 14:43:15 -0800 |
On 3/1/11, TheFlyingDutchman <zzbbaadd@aol.com> wrote:
> On Mar 1, 12:35 pm, PJ Weisberg <p...@irregularexpressions.net> wrote:
>> On 3/1/11, TheFlyingDutchman <zzbba...@aol.com> wrote:
>>
>> > Yes, thanks, that appears to be my problem. I am editing an html file
>> > and I see bindings for F2 as:
>>
>> In general something like this should get rid of any local binding you
>> don't want to override your global binding:
>>
>> (define-key 'foo-mode-map "key" nil)
>>
>> -PJ
>
> How would I determine the value of "foo-mode-map" to use. I tried
> 'html-mode and 'html-mode-map and 'c2-mode and 'c2-mode-map and define-
> key puts up a *Backtrace* window -> Debugger entered--Lisp error:
> (wrong-type-argument keymapp html-mode-map)
>
I was hoping someone more knowledgable would pipe up with a better
answer, but here's my suggestion: The variable "major-mode" has the
name of the current major mode, and "minor-mode-list" has all possible
minor modes. A minor mode is active if a variable with that name is
defined and non-nill. The map name should be the name of one of these
modes with "-map" at the end of it. You might have to guess which one
is binding the key you don't like.
-PJ
- Re: F2, PJ Weisberg, 2011/03/01
- Re: F2, Tim X, 2011/03/01
- Re: F2, TheFlyingDutchman, 2011/03/01
- Re: F2, PJ Weisberg, 2011/03/01
- Re: F2, despen, 2011/03/01
- Message not available
- Re: F2, TheFlyingDutchman, 2011/03/01
- Re: F2,
PJ Weisberg <=
- RE: F2, Drew Adams, 2011/03/02
- Message not available
- Re: F2, TheFlyingDutchman, 2011/03/02
- RE: F2, Drew Adams, 2011/03/02
- Re: F2, PJ Weisberg, 2011/03/02
Re: F2, Peter Dyballa, 2011/03/01
Re: F2, Sean Sieger, 2011/03/01
Re: F2, Sean Sieger, 2011/03/01
Re: F2, Glenn Morris, 2011/03/01