From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Wang Yin Newsgroups: gmane.emacs.help Subject: How can I set a different key binding to minibuffer? Date: 09 May 2003 09:12:05 +0800 Organization: Bentium Ltd. (CN99) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052442389 15773 80.91.224.249 (9 May 2003 01:06:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 9 May 2003 01:06:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri May 09 03:06:26 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19DwKs-00043x-00 for ; Fri, 09 May 2003 03:06:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19DwKU-0005N5-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 08 May 2003 21:05:42 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.cn99.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: tu140066.tsinghua.edu.cn Original-X-Trace: mail.cn99.com 1052442055 75258 166.111.140.66 (9 May 2003 01:00:55 GMT) Original-X-Complaints-To: usenet@news.cn99.com Original-NNTP-Posting-Date: Fri, 9 May 2003 01:00:55 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:112969 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9464 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9464 Hi, I'm trying to bind a function named my-indent-or-complete to TAB. (defun my-indent-or-complete () "hippie-expand, if we are at word boundary, indent otherwise" (interactive) (if (looking-at "\\>") (hippie-expand nil) (indent-for-tab-command) )) (global-set-key [(tab)] 'my-indent-or-complete) (setq hippie-expand-try-functions-list '(try-expand-dabbrev-visible try-expand-dabbrev try-expand-dabbrev-all-buffers try-expand-dabbrev-from-kill try-complete-file-name-partially try-complete-file-name try-expand-all-abbrevs try-expand-list try-expand-line try-complete-lisp-symbol-partially try-complete-lisp-symbol)) But when I partially typed a M-x commands in my minibuffer, I want to TAB to complete it. But TAB is hippie-expand'ing! I want no expand in my minibuffer. How can I do that? Can I have a different key binding in the minibuffer? How do I set it? Or can I have a different local variable hippie-expand-try-functions-list in my minibuffer? Thanks. -- Wang Yin DA Lab, Tsinghua University, 100084 Beijing China