Entering annoying-arrows-mode makes emacs ring the bell in your face if you use the arrow keys to move long distances. Set the `annoying-arrows-too-far-count' to adjust the length. Code: