[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs init and mode-maps
From: |
David Kastrup |
Subject: |
Re: emacs init and mode-maps |
Date: |
Fri, 23 Jun 2006 12:54:02 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Andreas Roehler <andreas.roehler@online.de> writes:
> David Kastrup wrote:
>
>> Andreas Roehler <andreas.roehler@online.de> writes:
>>
>>> An assignment as
>>>
>>> (define-key sh-mode-map "\M-#" 'do-something)
>>>
>>> should work instantly, as soon as sh-mode is activated.
>> ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>
>> You are aware that this is a complete contradiction, unless
>> sh-mode is activated instantly (hardly desirable)?
>
> An assignment as
>
> (define-key sh-mode-map "\M-#" 'do-something)
>
> should work - i.e. at least be recorded for further use
> -
>
> also, if sh-mode isn't activated yet.
That would requires sh-mode-map to be defined before loading, or
define-key to work on undefined variables, and it would most certainly
cause any define-key in sh-mode.el to override the settings in .emacs.
All of this is not desirable. I recommend you read up a bit more
about Elisp before making proposals.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- emacs init and mode-maps, Andreas Roehler, 2006/06/22
- Re: emacs init and mode-maps, Reiner Steib, 2006/06/22
- Re: emacs init and mode-maps, David Kastrup, 2006/06/22
- Re: emacs init and mode-maps, Reiner Steib, 2006/06/22
- Re: emacs init and mode-maps, Andreas Roehler, 2006/06/22
- Re: emacs init and mode-maps, David Kastrup, 2006/06/22
- Re: emacs init and mode-maps, Andreas Roehler, 2006/06/23
- Re: emacs init and mode-maps,
David Kastrup <=
- Re: emacs init and mode-maps, Kevin Rodgers, 2006/06/23
- Re: emacs init and mode-maps, Slawomir Nowaczyk, 2006/06/23
- Re: emacs init and mode-maps, Kevin Rodgers, 2006/06/26
- Re: emacs init and mode-maps, Slawomir Nowaczyk, 2006/06/27
- Re: emacs init and mode-maps, Andreas Roehler, 2006/06/24
- Re: emacs init and mode-maps, Andreas Roehler, 2006/06/24
- Re: emacs init and mode-maps, Peter Dyballa, 2006/06/24
- Message not available
- Re: emacs init and mode-maps, Andreas Roehler, 2006/06/25
- Re: emacs init and mode-maps, David Kastrup, 2006/06/25