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

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

Re: Remapping the Tab Key?


From: John Russell
Subject: Re: Remapping the Tab Key?
Date: Mon, 21 Nov 2005 12:45:52 -0500
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

"William Reardon" <william.reardon@gmail.com> writes:

> Ah, good to know.  Thanks Harald.
>
> I actually only want to do this in cperl, but simplified it to
> eliminate any problems w/ the mode hook (and make it easier to post
> :-).  Unfortunately, still no luck when trying the following:
>
> (add-hook 'cperl-mode-common-hook
>           (function (lambda ()
>                       (local-set-key [tab] (quote indent-or-complete))
>                       )))
>

This worked for me:

(define-key outline-mode-map [(tab)] 'my-function)

John



reply via email to

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