all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How can I set a different key binding to minibuffer?
@ 2003-05-09  1:12 Wang Yin
  2003-05-09 13:18 ` Joakim Hove
  2003-05-10 14:34 ` Kai Großjohann
  0 siblings, 2 replies; 5+ messages in thread
From: Wang Yin @ 2003-05-09  1:12 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-05-12 17:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-09  1:12 How can I set a different key binding to minibuffer? Wang Yin
2003-05-09 13:18 ` Joakim Hove
2003-05-10  2:34   ` wang yin
2003-05-12 17:51     ` Kevin Rodgers
2003-05-10 14:34 ` Kai Großjohann

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.