[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
about set key
From: |
lof |
Subject: |
about set key |
Date: |
Tue, 1 Jan 2008 10:11:10 -0800 (PST) |
User-agent: |
G2/1.0 |
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