Variable: split-window-keep-point

split-window-keep-point is a customizable variable defined in window.el.gz.

Value

t

Documentation

If non-nil, C-x 2 (split-window-below) preserves point in the new window.

If nil, adjust point in the two windows to minimize redisplay. This option applies only to split-window-below and functions that call it. The low-level split-window function always keeps the original point in both windows.

View in manual

Probably introduced at or before Emacs version 19.20.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
;; I think this should be the default; I think people will prefer it--rms.
(defcustom split-window-keep-point t
  "If non-nil, \\[split-window-below] preserves point in the new window.
If nil, adjust point in the two windows to minimize redisplay.
This option applies only to `split-window-below' and functions
that call it.  The low-level `split-window' function always keeps
the original point in both windows."
  :type 'boolean
  :group 'windows)