unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Elena <egarrulo@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How do you set a key in all buffers except the minibuffer?
Date: Fri, 9 Jul 2010 16:19:22 -0700 (PDT)	[thread overview]
Message-ID: <3dfe699c-cfb0-4ac1-9cee-99137fcbbe5c@w10g2000vbn.googlegroups.com> (raw)

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.


             reply	other threads:[~2010-07-09 23:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-09 23:19 Elena [this message]
2010-07-10 14:24 ` How do you set a key in all buffers except the minibuffer? Pascal J. Bourguignon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3dfe699c-cfb0-4ac1-9cee-99137fcbbe5c@w10g2000vbn.googlegroups.com \
    --to=egarrulo@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).