From 7a762fbbfc1c05be8de3d253251f5e7b32da2c73 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 30 Jun 2017 16:37:57 +0300 Subject: Support displaying zero as the number of the current line * src/xdisp.c (syms_of_xdisp) : New variable. : Doc fix. (maybe_produce_line_number): Support nil value of display-line-numbers-current-absolute. * lisp/cus-start.el (standard): Add customization form for display-line-numbers-current-absolute. * etc/NEWS: Document recently introduced features. --- lisp/cus-start.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lisp/cus-start.el') diff --git a/lisp/cus-start.el b/lisp/cus-start.el index 599e7e57f32..ed17113c784 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el @@ -602,6 +602,13 @@ since it could result in memory overflow and make Emacs crash." :value 2 :format "%v")) "26.1") + (display-line-numbers-current-absolute + (choice + (const :tag "Display actual number of current line" + :value t) + (const :tag "Display zero as number of current line" + :value nil)) + "26.1") ;; xfaces.c (scalable-fonts-allowed display boolean "22.1") ;; xfns.c -- cgit v1.2.1