From 98a0bc3fd2646a4058944c2226f96e6030735eff Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 4 May 2009 14:04:49 +0100 Subject: [PATCH] emacs: Ignore the magical XF86WakeUp keysym. For some reason, the `Fn' key on crybaby generates this keysym. Having Emacs feep when I bounce on it is annoying, since it ought to be a perfectly innocent modifier key. I've bound the key to an empty string, since this acts as a keyboard macro and does nothing. No other particularly simple binding seems to work (`nil' and `undefined' continue to feep; and there's no obvious do-nothing function to bind to the key). --- emacs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs b/emacs index 4337d39..f7b860d 100644 --- a/emacs +++ b/emacs @@ -139,7 +139,7 @@ (add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)) (or mdw-fast-startup - (trap (bbdb-initialize 'gnus 'sendmail 'vm 'message))) + (trap (bbdb-initialize 'gnus 'sendmail 'message))) (setq bbdb-north-american-phone-numbers-p nil) ;; --- Customization --- @@ -416,6 +416,7 @@ 'mouse-drag-vertical-line) (global-set-key [vertical-scroll-bar C-mouse-1] #'(lambda () (interactive))) +(global-set-key [XF86WakeUp] "") (and (not mdw-fast-startup) (fboundp 'hippie-expand) (global-set-key [?\M-/] 'hippie-expand)) -- 2.11.0