 
 (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

;;; core-ui.el --- interface & mode-line config

;; y/n instead of yes/no
(fset 'yes-or-no-p 'y-or-n-p)

(defvar doom-fringe-size 3 "Default fringe width")

(setq-default
 blink-matching-paren nil ; don't blink--too distracting
 show-paren-delay 0.075

 ;; Keep cursors and highlights in current window only
 cursor-in-non-selected-windows nil
 highlight-nonselected-windows nil

 uniquify-buffer-name-style nil ; my mode-line does this for me
 visible-bell nil
 visible-cursor nil
 x-stretch-cursor t
 use-dialog-box nil             ; always avoid GUI
 redisplay-dont-pause t         ; don't pause display on input
 indicate-buffer-boundaries nil ; don't show where buffer starts/ends
 indicate-empty-lines t         ; show empty lines
 fringes-outside-margins t      ; switches order of fringe and margin
 split-width-threshold nil      ; favor horizontal splits
 show-help-function nil         ; hide :help-echo text

 jit-lock-defer-time nil
 jit-lock-stealth-nice 0.1
 jit-lock-stealth-time 0.2
 jit-lock-stealth-verbose nil

 ;; Disable bidirectional text support for slight performance bonus
 bidi-display-reordering nil

 ;; Minibuffer resizing
 resize-mini-windows 'grow-only
 max-mini-window-height 0.3

 ;; Remove arrow on the right fringe when wrapped
 fringe-indicator-alist (delq (assoc 'continuation fringe-indicator-alist)
                              fringe-indicator-alist))

;; Ask for confirmation on exit only if there are real buffers left
(when window-system
  (setq confirm-kill-emacs
        (lambda (_)
          (if (doom/get-real-buffers)
              (y-or-n-p ">> Gee, I dunno Brain... Are you sure?")
            t))))

(load-theme doom-current-theme t)
(tooltip-mode -1) ; show tooltips in echo area

;; set up minibuffer and fringe
(if (not window-system)
    (menu-bar-mode -1)
  (scroll-bar-mode -1)  ; no scrollbar

;;

(use-package hl-line
  :init (add-hook! (prog-mode markdown-mode) 'hl-line-mode)
  :config
  (defvar-local doom--hl-line-mode nil)
  (setq hl-line-sticky-flag nil
