[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do you set a key in all buffers except the minibuffer?
From: |
Alan Mackenzie |
Subject: |
Re: How do you set a key in all buffers except the minibuffer? |
Date: |
Wed, 08 Dec 2010 15:18:24 -0000 |
User-agent: |
tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386)) |
Elena <egarrulo@gmail.com> wrote:
> 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.
Bind the key to `ignore' in the minibuffer, not `nil'. This command is
documented in the Elisp manual on page "Calling Functions".
--
Alan Mackenzie (Nuremberg, Germany).