Install elpa-linum-relative by entering the following commands in the terminal:
sudo apt update sudo apt install elpa-linum-relative
Description:
display relative line number in Emacs
This package lets you display relative line numbers for current buffer. For the current line it can show any symbol or the real line number. Supports helm-mode.
Homepage: https://github.com/coldnew/linum-relative
Version: 0.6-1
Section: universe/lisp