[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Remapping the Tab Key?
From: |
William Reardon |
Subject: |
Re: Remapping the Tab Key? |
Date: |
21 Nov 2005 12:03:12 -0800 |
User-agent: |
G2/0.2 |
No luck with that approach either, as I get the following error:
Symbol's value as variable is void: cperl-mode-map
I did, however, finally stumble on something that does:
(add-hook 'cperl-mode-hook
(function (lambda ()
(local-set-key [009] (quote indent-or-complete))
)))
Changing from 'cperl-mode-common-hook' to 'cperl-mode-hook' and using
the decimal value of the tab key. I can think of a few reasons for the
former, but I don't understand the latter. It *only* works with the
decimal value. Neither of the following would do the trick:
(local-set-key [tab] (quote indent-or-complete))
(local-set-key [(tab)] (quote indent-or-complete))
Any insights as to why?
-Bill