-;; Time-stamp: <2017-06-08 08:07:19 kmodi>
+;; Time-stamp: <2017-06-27 17:46:08 kmodi>
 
 ;; Line number package manager
+
+;; Contents:
+;;
+;;  Native line number support (emacs 26+)
+;;  linum
+;;  nlinum
 
 (defvar modi/linum-fn-default 'nlinum
   "Default “linum” mode. This is used when toggling linum on and off.

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

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


(defun modi/linum-set (linum-pkg)
  "Enable or disable linum.

With LINUM-PKG set to either `native-linum', `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): "
                  '("native-linum" "nlinum" "linum" "nil")
                  nil :require-match nil nil "nlinum"))))
  (when (stringp linum-pkg)
    (setq linum-pkg (intern linum-pkg)))
  (cl-case linum-pkg
    (native-linum
     (modi/turn-off-linum)
     (modi/turn-off-nlinum)
     (modi/turn-on-native-linum))
    (nlinum
     (modi/turn-off-native-linum)
     (modi/turn-off-linum)
     (modi/turn-on-nlinum))
    (linum
     (modi/turn-off-native-linum)
     (modi/turn-off-nlinum)
     (modi/turn-on-linum))
    (t
     (modi/turn-off-native-linum)
     (modi/turn-off-linum)
     (modi/turn-off-nlinum)))
  (let (state-str filler-str)
