Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to execute a command upon loading a module
- X-seq: zsh-users 6677
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: How to execute a command upon loading a module
- Date: Thu, 9 Oct 2003 20:26:56 +0200
- Cc: Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <1031009164110.ZM10435@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <20031009150907.GA847@DervishD> <1031009164110.ZM10435@xxxxxxxxxxxxxxxxxxxxxxx>
Hi Bart :)
* Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> dixit:
> } Since the keymaps doesn't exist until the module is loaded, I
> } cannot modify them to my likings :(( Can I execute shell code just
> } after a module is loaded?
> No, there is no emacs-like eval-after-load hook.
Well, I don't use emacs, but I can see what you mean. I thought
that modules may have an undocumented hook feature.
> } Can I *create* those keymaps, modify them and expect the corresponding
> } modules doesn't modify them again?
> No, the module forcibly re-creates and initializes the keymap, discarding
> any existing keymap by that name -- and unloading the module deletes the
> keymap. It'd be nice if complist were a little more careful about this,
> i.e., check whether the keymap exists and selectively update it, but no.
Well, then I'll stick to loading the module explicitly. It
doesn't do no harm, really, I was just wondering if a better or
neater solution existed.
Thanks :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author