help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about set key


From: Wang xiangdong
Subject: Re: about set key
Date: Wed, 09 Jan 2008 10:38:48 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

(global-set-key (kbd "TAB") 'my-indent-or-complete)

TAB and <tab> are different under X.
lof <flyli3415@gmail.com> writes:

> 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

-- 
Every man is the master of his own fortune. 
http://www.google.com
              -- Wang xiangdong


reply via email to

[Prev in Thread] Current Thread [Next in Thread]