;;; line-numbers.el -*- lexical-binding: t -*-

(require 'syd/prelude)

(syd-add-hook 'prog-mode-hook
  ;; Display line numbers only in prog-mode derivatives.
  (defun syd-prog-mode-line-numbers-h ()
    (display-line-numbers-mode 1)))

;; Display line numbers relative to the line on which the cursor resides.
(setq display-line-numbers-type 'relative)

(provide 'syd/line-numbers)
