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: David Kastrup
Subject: Re: global-set-key [tab] doesn't work
Date: Wed, 05 Jul 2006 08:48:56 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Robin Wilson <r.t.wilson@rmplc.co.uk> writes:

> 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!

At least the variant for tab is fine.  It may get overriden by your
major mode, or Emacs bombs out when evaluating .emacs before it
reaches there.  Call

emacs --debug-init

to check for that.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


reply via email to

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