From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10857 invoked from network); 9 Oct 2003 15:05:27 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 9 Oct 2003 15:05:27 -0000 Received: (qmail 5191 invoked by alias); 9 Oct 2003 15:05:05 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6670 Received: (qmail 5156 invoked from network); 9 Oct 2003 15:05:04 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 9 Oct 2003 15:05:04 -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 15:5:3 -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 h99F51R30420 for ; Thu, 9 Oct 2003 17:05:01 +0200 Received: from raul@pleyades.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1A7cPb-0000Dj-00>; Thu, 9 Oct 2003 17:09:07 +0200 Date: Thu, 9 Oct 2003 17:09:07 +0200 From: DervishD To: Zsh Users Subject: How to execute a command upon loading a module Message-ID: <20031009150907.GA847@DervishD> Mail-Followup-To: Zsh Users Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4i Organization: Pleyades User-Agent: Mutt/1.4i Hi all :) I want to modify the listscroll and menuselect keymaps when zsh/complist (this is the module which defines it, isn't it?, or maybe zsh/compctl?) is loaded. By now the only way of doing it is to load the module by hand and afterwards modify the keybindings, in my /etc/zshrc. I load the zsh/compctl module, because I've defined a few dependencies for the completion modules, so loading zsh/compctl, by hand or by pressing 'TAB', for example, automatically loads the rest of modules. Is because of this that I'm not sure about which module defines which keymap O:)) 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? Can I *create* those keymaps, modify them and expect the corresponding modules doesn't modify them again? Thanks in advance Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/