 
 (use-package rainbow-delimiters
   :commands rainbow-delimiters-mode
+  :config (setq rainbow-delimiters-max-face-count 3)
   :init
-  (add-hook! (emacs-lisp-mode lisp-mode js2-mode css-mode c-mode-common)
-    'rainbow-delimiters-mode)
-  :config
-  (setq rainbow-delimiters-max-face-count 3))
-
+  (add-hook! (emacs-lisp-mode lisp-mode js-mode css-mode c-mode-common)
+    'rainbow-delimiters-mode))
+
+;; NOTE hl-line-mode and rainbow-mode don't play well together
 (use-package rainbow-mode
   :commands (rainbow-mode)
-  :init
-  ;; hl-line-mode and rainbow-mode don't play well together
-  (add-hook 'rainbow-mode-hook 'doom|hl-line-off))
+  :init (add-hook 'rainbow-mode-hook 'doom|hl-line-off))
 
 (use-package nlinum
   :commands nlinum-mode


  (defun doom|hl-line-on ()  (if doom--hl-line-mode (hl-line-mode +1)))
  (defun doom|hl-line-off () (if doom--hl-line-mode (hl-line-mode -1)))

  (add-hook! hl-line-mode (if hl-line-mode (setq doom--hl-line-mode t)))
  ;; Disable line highlight in visual mode
  (add-hook 'evil-visual-state-entry-hook 'doom|hl-line-off)

    (add-hook 'post-command-hook 'doom|nlinum-hl-line nil t))
  :config
  (add-hook! nlinum-mode
    (setq nlinum--width (length (save-excursion (goto-char (point-max))
                                                (format-mode-line "%l"))))))


;;
