emacs init: arrow keys move by visual line, logical line

By Xah Lee. Date: . Last updated: .

Up/down arrow key move by visual line or logical line

New in Emacs 23 (date 2009-07)

By default, arrow up/down moves by visual line.

;; make the up down arrow keys move based on logical lines. logical lines means separated by newline character.
(setq line-move-visual nil)
;; default is t

Arrow Up/Down Scrolls Screen

Alt+x scroll-lock-mode. When on, up/down arrow keys scroll the page, instead of moving the cursor.

This only turns it on in current buffer. There is no global setting.

Emacs Lines, Column, Cursor Position

Soft-Wrap Lines

Reformat Lines

Show Line Number, Column Number

Highlight Current Line, Screen Line