From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24914 invoked from network); 14 Mar 2003 20:46:27 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Mar 2003 20:46:27 -0000 Received: (qmail 23317 invoked by alias); 14 Mar 2003 20:45:04 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5968 Received: (qmail 23310 invoked from network); 14 Mar 2003 20:45:04 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 14 Mar 2003 20:45:04 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [65.54.245.35] by sunsite.dk (MessageWall 1.0.8) with SMTP; 14 Mar 2003 20:45:4 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 14 Mar 2003 12:45:02 -0800 Received: from 12.236.237.159 by by1fd.bay1.hotmail.msn.com with HTTP; Fri, 14 Mar 2003 20:45:02 GMT X-Originating-IP: [12.236.237.159] From: "Virginia Mann" To: zsh-users@sunsite.dk Bcc: Subject: Re: menu selection and enter key Date: Fri, 14 Mar 2003 20:45:02 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 14 Mar 2003 20:45:02.0711 (UTC) FILETIME=[96325870:01C2EA6A] When I use the line (thanks Oliver and Andrey!) bindkey -M menuselect '^M' .accept-line It causes my enter key to do what I want it to do (execute immediately instead of making me hit twice), so I put it in my .zshrc. But when I first start up a new zsh, and .zshrc is sourced the first time, this line fails with the error: "no such keymap `menuselect'". If I do some menu selection and then rerun this .zshrc, the bindkey works and sets the desired behavior. It appears that I need to load something before I execute this line. Or maybe there's a way to instruct zsh to accept it because the needed bits will be loaded later (like a C++ forward declaration). I have no idea. I don't want to accidentally switch my default keymap to menuselect or load more than necessary or cause something to reload everytime I source my .zshrc by forcing a manual load or whatever else may go wrong. What would be the best approach for use in my .zshrc to get this line to work sensibly? Thanks. _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail