Variable: duplicate-line-final-position

duplicate-line-final-position is a customizable variable defined in misc.el.gz.

Value

0

Documentation

Where to put point after duplicate-line or duplicate-dwim.

When 0, leave point on the original line. When 1, move point to the first new line. When -1, move point to the last new line. The same column is preserved after moving to a new line.

This variable was added, or its default value changed, in Emacs 29.1.

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/misc.el.gz
(defcustom duplicate-line-final-position 0
  "Where to put point after `duplicate-line' or `duplicate-dwim'.
When 0, leave point on the original line.
When 1, move point to the first new line.
When -1, move point to the last new line.
The same column is preserved after moving to a new line."
  :type '(choice (const :tag "Leave point on old line" 0)
                 (const :tag "Move point to first new line" 1)
                 (const :tag "Move point to last new line" -1)
                 (integer))
  :group 'editing
  :version "29.1")