From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "William Reardon" Newsgroups: gmane.emacs.help Subject: Remapping the Tab Key? Date: 20 Nov 2005 00:37:25 -0800 Organization: http://groups.google.com Message-ID: <1132475845.739407.273570@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1132477598 10246 80.91.229.2 (20 Nov 2005 09:06:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2005 09:06:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 20 10:06:30 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Edl9I-0002qv-EO for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Nov 2005 10:06:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Edl8n-0004Bi-JK for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Nov 2005 04:05:42 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 68.77.3.120 Original-X-Trace: posting.google.com 1132475850 30262 127.0.0.1 (20 Nov 2005 08:37:30 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 20 Nov 2005 08:37:30 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=68.77.3.120; posting-account=VjvL0g0AAAA-AVkS8vPPjBm6Gf14vTmG Original-Xref: shelby.stanford.edu gnu.emacs.help:135590 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:31187 Archived-At: I'm trying to remap the tab key to call a custom elisp function, but can't quite get it work. Here's what I have: (global-set-key [tab] 'indent-or-complete) I'm pretty sure the problem isn't in the function, as I can successfully remap it to ^t via (global-set-key "\C-t" 'indent-or-complete) and it works as expected. I've hunted around a bit, tried the various tricks suggested in the FAQ, but no luck. Any suggestions? I'm running GNU Emacs 21.2.1 on Mac OS X 10.3.9. TIA! -Bill