[Top][All Lists]

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

RE: Unable to Rebind Tab Key in cperl-mode

From: Drew Adams
Subject: RE: Unable to Rebind Tab Key in cperl-mode
Date: Mon, 7 May 2007 10:33:15 -0700

> Any ideas why none of these work:
> (add-hook 'cperl-mode-hook
>           (function (lambda ()
>                       (local-set-key (kbd "<tab>") 'indent-or-
> complete)
>                       (local-set-key [tab] 'indent-or-complete)
>                       (local-set-key (kbd "TAB") 'indent-or-complete)
>                       )))
> I'm using emacs 21.2.1.

You should provide more information. What do you mean by not work? What
happens in each case? Have you first tried that key-binding code in a
cperl-mode buffer, without the code being on a hook? Try to narrow down the
problem and clarify the problem description.

As a wild guess, you might check that your keyboard actually uses the <tab>
key. It might, instead, use something like <iso-lefttab>.

reply via email to

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