From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.help Subject: Re: Remapping the Tab Key? Date: Sun, 20 Nov 2005 10:19:42 +0100 Organization: Norwegian university of science and technology Message-ID: References: <1132475845.739407.273570@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 1132481943 18829 80.91.229.2 (20 Nov 2005 10:19:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2005 10:19:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 20 11:19:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EdmH5-0001oF-VA for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Nov 2005 11:18:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdmH2-0003gZ-N3 for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Nov 2005 05:18:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: fiinbeck.math.ntnu.no Original-X-Trace: orkan.itea.ntnu.no 1132478372 8454 129.241.15.140 (20 Nov 2005 09:19:32 GMT) Original-X-Complaints-To: usenet@itea.ntnu.no Original-NNTP-Posting-Date: Sun, 20 Nov 2005 09:19:32 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (berkeley-unix) Cancel-Lock: sha1:XX8HAHR8iiugGtro/aSxP6+7R4Y= Original-Xref: shelby.stanford.edu gnu.emacs.help:135592 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:31189 Archived-At: + "William Reardon" : | 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) Changing the tab key in the global keymap is unlikely to work, as many major modes will bind this key in their local keymaps. Check out the story on global vs local keymaps in the info file. -- * Harald Hanche-Olsen - Debating gives most of us much more psychological satisfaction than thinking does: but it deprives us of whatever chance there is of getting closer to the truth. -- C.P. Snow