From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14240 invoked from network); 9 Oct 2003 18:38:27 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 9 Oct 2003 18:38:27 -0000 Received: (qmail 3920 invoked by alias); 9 Oct 2003 18:38:03 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6677 Received: (qmail 3900 invoked from network); 9 Oct 2003 18:38:03 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 9 Oct 2003 18:38:03 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.193.203.32] by sunsite.dk (MessageWall 1.0.8) with SMTP; 9 Oct 2003 18:38:2 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id h99IbuR04408; Thu, 9 Oct 2003 20:37:56 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1A7fV2-0000Gf-00>; Thu, 9 Oct 2003 20:26:56 +0200 Date: Thu, 9 Oct 2003 20:26:56 +0200 From: DervishD To: Bart Schaefer Cc: Zsh Users Subject: Re: How to execute a command upon loading a module Message-ID: <20031009182656.GD1016@DervishD> Mail-Followup-To: Bart Schaefer , Zsh Users References: <20031009150907.GA847@DervishD> <1031009164110.ZM10435@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1031009164110.ZM10435@candle.brasslantern.com> User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi Bart :) * Bart Schaefer 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/