I find it convenient to move by multiple lines for quickly scrolling up/down:
;; replaces forward-sentence (global-set-key (kbd "M-e") (lambda () (interactive) (next-line 3))) ;; replaces backward-sentence (global-set-key (kbd "M-a") (lambda () (interactive) (previous-line 3)))
However, this gives doesn't save the column of the cursor after you switch directions. For example, suppose a buffer contains the following:
This is line 1. This is line 2. This is line 3. This is line 5.
Put your cursor on the "1" in the first line, then press C-n 3 times, then press C-p 3 times. You should find that you end up back on the "1".
Now, define M-e and M-a using the above keyboard shortcuts. Try putting your cursor on the "1", press M-e once, then M-a once. Your cursor ends up at the beginning of the first line! (Tested on Emacs 24.5.1).
How can you move multiple lines in one keypress and preserve the column after switching directions? I tried replacing
forward-line... no dice.