[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A way to make Emacs completely disregard a key
From: |
Kevin Rodgers |
Subject: |
Re: A way to make Emacs completely disregard a key |
Date: |
Mon, 26 Jul 2010 21:54:24 -0600 |
User-agent: |
Thunderbird 2.0.0.24 (Macintosh/20100228) |
Deniz Dogan wrote:
I have undefined <f2> so that it is unbound. But still I get "<f2> is
undefined" in the echo area and a beep, which I don't want. I know I
can just bind this to a no-op command instead,
(global-set-key (kbd "<f2>") 'ignore)
but is there a smart
way to make Emacs completely disregard any hit of the <f2> key? So
e.g. C-x <f2> C-s would be interpreted as C-x C-s, since <f2> is not
even snapped up by Emacs.
(define-key special-event-map (kbd "<f2>") 'ignore)
(info "(elisp)Special Events")
--
Kevin Rodgers
Denver, Colorado, USA