[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs init and mode-maps
From: |
Reiner Steib |
Subject: |
Re: emacs init and mode-maps |
Date: |
Thu, 22 Jun 2006 12:02:41 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
On Thu, Jun 22 2006, David Kastrup wrote:
> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>> Use `eval-after-load' or a mode hook.
>
> (add-hook 'sh-mode-hook (lambda nil
> (define-key sh-mode-map "\M-#" 'variable-anlegen)))
>
> Would be sort of the usual way to do this. eval-after-load is rather
> an emergency measure and not desirable here.
My understanding was that `eval-after-load' is discouraged in
programs, but okay for user init files:
,----[ (info "(elisp)Hooks for Loading") ]
| You can ask for code to be executed if and when a particular library is
| loaded, by calling `eval-after-load'.
|
| [...]
|
| In general, well-designed Lisp programs should not use this feature.
| [...]
|
| But it is OK to use `eval-after-load' in your personal
| customizations if you don't feel they must meet the design standards for
| programs meant for wider use.
`----
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
- 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 <=
- 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, 2006/06/23
- 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