From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elena Newsgroups: gmane.emacs.help Subject: How do you set a key in all buffers except the minibuffer? Date: Fri, 9 Jul 2010 16:19:22 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3dfe699c-cfb0-4ac1-9cee-99137fcbbe5c@w10g2000vbn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291850646 7836 80.91.229.12 (8 Dec 2010 23:24:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 23:24:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 00:23:58 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQTKh-0000dV-P1 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 00:23:57 +0100 Original-Received: from localhost ([127.0.0.1]:53090 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQTKf-0000bQ-AB for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 18:21:57 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!w10g2000vbn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 11 Original-NNTP-Posting-Host: 94.36.140.172 Original-X-Trace: posting.google.com 1278717562 27346 127.0.0.1 (9 Jul 2010 23:19:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 9 Jul 2010 23:19:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w10g2000vbn.googlegroups.com; posting-host=94.36.140.172; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.19) Gecko/2010062510 Iceweasel/3.0.6 (Debian-3.0.6-3),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:179671 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:76207 Archived-At: Hello, I wonder how do you set a key in all buffers except the minibuffer? After reading the ELisp reference, I've tried this: (global-set-key (kbd "C-l") 'my-command) (define-key minibuffer-local-map (kbd "C-l") nil) but it doesn't work. Any hints? Thanks.