unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Wang Yin <wang-y01@mails.tsinghua.edu.cn>
Subject: How can I set a different key binding to minibuffer?
Date: 09 May 2003 09:12:05 +0800	[thread overview]
Message-ID: <phptmsudne.fsf@wangyin.com> (raw)

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

             reply	other threads:[~2003-05-09  1:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-09  1:12 Wang Yin [this message]
2003-05-09 13:18 ` How can I set a different key binding to minibuffer? Joakim Hove
2003-05-10  2:34   ` wang yin
2003-05-12 17:51     ` Kevin Rodgers
2003-05-10 14:34 ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=phptmsudne.fsf@wangyin.com \
    --to=wang-y01@mails.tsinghua.edu.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).