From 6a1ca6b0dcf29108d2464ee27f833f5b1defb59d Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Thu, 23 Feb 2012 16:39:06 +0200 Subject: [PATCH] disable M-left and M-right global keybindings --- modules/prelude-global-keybindings.el | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/modules/prelude-global-keybindings.el b/modules/prelude-global-keybindings.el index 3e8df4e..6e0175e 100644 --- a/modules/prelude-global-keybindings.el +++ b/modules/prelude-global-keybindings.el @@ -128,18 +128,14 @@ (global-set-key (kbd "") 'menu-bar-mode) ;; real Emacs hackers don't use the arrow keys -(global-set-key (kbd "") (lambda () - (interactive) - (message "Arrow key navigation is disabled. Use C-p instead."))) -(global-set-key (kbd "") (lambda () - (interactive) - (message "Arrow key navigation is disabled. Use C-n instead."))) -(global-set-key (kbd "") (lambda () - (interactive) - (message "Arrow key navigation is disabled. Use C-b instead."))) -(global-set-key (kbd "") (lambda () - (interactive) - (message "Arrow key navigation is disabled. Use C-f instead."))) +(global-unset-key [up]) +(global-unset-key [down]) +(global-unset-key [left]) +(global-unset-key [right]) + +;; use M-f and M-b instead +(global-unset-key [M-left]) +(global-unset-key [M-right]) (global-set-key (kbd "C-x g") 'magit-status)