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

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

Re: global-set-key [tab] doesn't work


From: Le Wang
Subject: Re: global-set-key [tab] doesn't work
Date: 4 Jul 2006 21:12:12 -0700
User-agent: G2/0.2

Robin Wilson wrote:
> Hi
>
> I'm sorry to keep asking questions, but I can't seem to find the answers
> to most of these things elsewhere, and you've been very helpful so far.
> As I said - after learning all of that hopefully I'll be able to help
> other people.
>
> Basically in my .emacs file I have the following lines:
>
> (global-set-key [tab] 'indent-or-complete)
> (global-set-key [C-z] 'undo)
>
> but neither of these work when used in a buffer. If I type, for example,
> (def and press TAB it does nothing, but if I do M-x indent-or-complete
> it completes it to (defun. TAB however does indent properly when used on
> a blank line. I'm guessing from this that the binding hasn't been set
> properly - but I'm not sure how I set it properly! I've copied the
> bindings I've used for Function Keys (F1, F2 etc) and assume it's the
> same syntax.
>
> The same thing occurs with C-z binding to undo. If I do M-x
> global-set-key and then press C-z and type undo it works fine.
>
> Any ideas anyone?

yes.  Use google groups.  Use the wiki.  I'm sure it occurs to you this
is not the first time this question has come up.  You'll get an
immediate answer in fewer keystrokes.

--
Le



reply via email to

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