Disable Arrow Keys In emacs
Solution 1:
Put this Elisp code at the bottom of your ~/.emacs
startup file:
(global-unset-key (kbd "<left>"))
(global-unset-key (kbd "<right>"))
(global-unset-key (kbd "<up>"))
(global-unset-key (kbd "<down>"))
(global-unset-key (kbd "<C-left>"))
(global-unset-key (kbd "<C-right>"))
(global-unset-key (kbd "<C-up>"))
(global-unset-key (kbd "<C-down>"))
(global-unset-key (kbd "<M-left>"))
(global-unset-key (kbd "<M-right>"))
(global-unset-key (kbd "<M-up>"))
(global-unset-key (kbd "<M-down>"))
and then restart Emacs. If you don't want to disable the Ctrl (C-
)and Alt (M-
) variants, just leave those sections out.
Solution 2:
This link is prob also relevant (its what I have just started using):
http://danamlund.dk/emacs/no-easy-keys.html