From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Russell Newsgroups: gmane.emacs.help Subject: Re: Remapping the Tab Key? Date: Mon, 21 Nov 2005 12:45:52 -0500 Organization: Cisco Systems Inc. Message-ID: <87br0dopwv.fsf@cisco.com> References: <1132475845.739407.273570@g43g2000cwa.googlegroups.com> <1132561549.972556.145670@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1132596237 952 80.91.229.2 (21 Nov 2005 18:03:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Nov 2005 18:03:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 21 19:03:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EeFyZ-0005CK-JK for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Nov 2005 19:01:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EeFyZ-0002lo-4g for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Nov 2005 13:01:11 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!hwmnpeer01.phx!hwmedia!hw-filter.phx!fe08.phx.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:YUcE0cZ9mPfxNmCkSYwMnIQ0M3g= Cache-Post-Path: sj-nntpcache-5!unknown@dhcp-10-86-164-253.cisco.com X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/) Original-Lines: 20 Original-NNTP-Posting-Host: 171.69.11.154 Original-X-Complaints-To: newsadmin@cisco.com Original-X-Trace: fe08.phx 1132595151 171.69.11.154 (Mon, 21 Nov 2005 10:45:51 MST) Original-NNTP-Posting-Date: Mon, 21 Nov 2005 10:45:51 MST Original-Xref: shelby.stanford.edu gnu.emacs.help:135618 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31216 Archived-At: "William Reardon" 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