all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* about set key
@ 2008-01-01 18:11 lof
  2008-01-09  2:38 ` Wang xiangdong
  0 siblings, 1 reply; 2+ messages in thread
From: lof @ 2008-01-01 18:11 UTC (permalink / raw)
  To: help-gnu-emacs

I want to set tab as hippie-expand hot key for text writing
so I write:
(defun my-indent-or-complete ()
  (interactive)
  (if (looking-at "\\>")
      (hippie-expand nil)
    (indent-for-tab-command)
    ))
(global-set-key [(tab)] 'my-indent-or-complete)

but there is a problem
when I want to use a command,
I hit M-x and then I donnot remember the command
before , I hit M-x s<tab> ,so that it can give me some options
but now it start hippie-expand , I cannot get the options
how could I prevent hippie-expand start when I input command?

thank you

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

end of thread, other threads:[~2008-01-09  2:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-01 18:11 about set key lof
2008-01-09  2:38 ` Wang xiangdong

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.