disable M-left and M-right global keybindings

This commit is contained in:
Bozhidar Batsov 2012-02-23 16:39:06 +02:00
parent c8d307d8cc
commit 6a1ca6b0dc

View file

@ -128,18 +128,14 @@
(global-set-key (kbd "<f12>") 'menu-bar-mode) (global-set-key (kbd "<f12>") 'menu-bar-mode)
;; real Emacs hackers don't use the arrow keys ;; real Emacs hackers don't use the arrow keys
(global-set-key (kbd "<up>") (lambda () (global-unset-key [up])
(interactive) (global-unset-key [down])
(message "Arrow key navigation is disabled. Use C-p instead."))) (global-unset-key [left])
(global-set-key (kbd "<down>") (lambda () (global-unset-key [right])
(interactive)
(message "Arrow key navigation is disabled. Use C-n instead."))) ;; use M-f and M-b instead
(global-set-key (kbd "<left>") (lambda () (global-unset-key [M-left])
(interactive) (global-unset-key [M-right])
(message "Arrow key navigation is disabled. Use C-b instead.")))
(global-set-key (kbd "<right>") (lambda ()
(interactive)
(message "Arrow key navigation is disabled. Use C-f instead.")))
(global-set-key (kbd "C-x g") 'magit-status) (global-set-key (kbd "C-x g") 'magit-status)