From 6a4266ed2edd9622aca48662ce338e3282bad310 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 3 May 2018 07:36:57 +0200 Subject: [PATCH] Emacs: Display visual relative line numbers --- .emacs.d/lisp/main.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.emacs.d/lisp/main.el b/.emacs.d/lisp/main.el index 7fe40a98..4b311a5a 100644 --- a/.emacs.d/lisp/main.el +++ b/.emacs.d/lisp/main.el @@ -74,7 +74,7 @@ (if (>= emacs-major-version 26) (add-hook hook 'display-line-numbers-mode) (add-hook hook 'linum-mode))) -(setq display-line-numbers-type 'relative) +(setq display-line-numbers-type 'visual) ;;; Emacs-nox does not display a fringe after the linum: Setting linum-format in ;;; linum-before-numbering-hook is not the right approach as it will change the ;;; type of linum-format in the middle. See linum-update-window.