Relative line numbers

This commit is contained in:
Marcel Kapfer 2022-03-30 16:57:23 +02:00
parent b20f578afa
commit 55136714ea
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -348,6 +348,12 @@ And disable this for some modes.
(add-hook 'eww-mode-hook (lambda () (display-line-numbers-mode -1))) (add-hook 'eww-mode-hook (lambda () (display-line-numbers-mode -1)))
#+end_src #+end_src
But when Emacs shows line numbers, they should be relative. Why? Ever tried =20j= in Evil mode or =C-u 20 C-p= in Emacs?
#+begin_src emacs-lisp
(setq display-line-numbers-type 'relative)
#+end_src
** Replace selected text by typing ** Replace selected text by typing
#+begin_src emacs-lisp #+begin_src emacs-lisp