Skip to main content
also mention the non-t meaning as suggested by Wilfred Hughes
Source Link
(setq scroll-preserve-screen-position t)

With this settingWith this setting, if you page up and down, the cursor returns to its original line. It also retains its original column in Emacs version 23 or newer.

You may or may not prefer

(setq scroll-preserve-screen-position 'always)

which always preserves the cursor's screen position when scrolling, rather than preserving the cursor position in the buffer if the original position is still visible.

(setq scroll-preserve-screen-position t)

With this setting, if you page up and down, the cursor returns to its original line. It also retains its original column in Emacs version 23 or newer.

(setq scroll-preserve-screen-position t)

With this setting, if you page up and down, the cursor returns to its original line. It also retains its original column in Emacs version 23 or newer.

You may or may not prefer

(setq scroll-preserve-screen-position 'always)

which always preserves the cursor's screen position when scrolling, rather than preserving the cursor position in the buffer if the original position is still visible.

incorporate info from Comment
Source Link
(setq scroll-preserve-screen-position t)

With this setting, if you page up and down, the cursor returns to its original line. It also retains its original column ifin Emacs >=version 23 or newer.

(setq scroll-preserve-screen-position t)

With this setting, if you page up and down, the cursor returns to its original line. It also retains its original column if Emacs >= 23.

(setq scroll-preserve-screen-position t)

With this setting, if you page up and down, the cursor returns to its original line. It also retains its original column in Emacs version 23 or newer.

(setq scroll-preserve-screen-position t)

With this setting, if you page up and down, the cursor returns to its original line, though not. It also retains its original column if Emacs >= 23.

(setq scroll-preserve-screen-position t)

With this setting, if you page up and down, the cursor returns to its original line, though not its original column.

(setq scroll-preserve-screen-position t)

With this setting, if you page up and down, the cursor returns to its original line. It also retains its original column if Emacs >= 23.

Source Link
Loading