       (dolist (hook modi/linum-mode-hooks)
         (remove-hook hook #'linum-mode)))))
 
-;; nlinum
+;;; nlinum
 ;; http://elpa.gnu.org/packages/nlinum.html
 (use-package nlinum
   :config


(defun modi/linum-set (linum-pkg)
  "Enable or disable linum.
With LINUM-PKG set to either 'nlinum or 'linum, the
respective linum mode will be enabled. When LINUM-PKG is nil, linum will be
disabled altogether."
  (interactive
   (list (intern (completing-read
                  "linum pkg (default nlinum): "
                  '("nlinum" "linum" "nil")
                  nil :require-match nil nil "nlinum"))))
  (when (stringp linum-pkg)
    (setq linum-pkg (intern linum-pkg)))
  (cl-case linum-pkg
    (nlinum
     (modi/turn-off-linum)
     (modi/turn-on-nlinum))
    (linum
     (modi/turn-off-nlinum)
     (modi/turn-on-linum))
    (t
     (modi/turn-off-linum)
     (modi/turn-off-nlinum)))
  (let (state-str filler-str)

                                  yaml-mode-hook)
  "List of hooks of major modes in which a “linum” mode should be enabled.")

;;; Native line number support (emacs 26+)
(defun modi/native-linum-absolute ()
  "Set buffer-local variable `display-line-numbers' to t."
  (interactive)
  (setq display-line-numbers t))

(defun modi/native-linum-relative ()
  "Set buffer-local variable `display-line-numbers' to `relative'."
  (interactive)
  (setq display-line-numbers 'relative))

(defun modi/native-linum-off ()
  "Set buffer-local variable `display-line-numbers' to nil."
  (interactive)
  (setq display-line-numbers nil))

(defun modi/turn-on-native-linum ()
  "Turn on native line numbers in specific modes."
  (interactive)
  (if modi/linum-mode-enable-global
      (progn
        (dolist (hook modi/linum-mode-hooks)
          (remove-hook hook #'modi/native-linum-absolute))
        (setq-default display-line-numbers t))
    (progn
      (when global-linum-mode
        (setq-default display-line-numbers nil))
      (dolist (hook modi/linum-mode-hooks)
        (add-hook hook #'modi/native-linum-absolute)))))

(defun modi/turn-off-native-linum ()
  "Turn off native line numbers in specific modes."
  (interactive)
  (setq-default display-line-numbers nil)
  (dolist (hook modi/linum-mode-hooks)
    (remove-hook hook #'modi/native-linum-absolute)))

;;; linum
(use-package linum
  :config
  (progn
