 
 ;; ensure buffer titles are unique
 (use-package uniquify
+  :defer 2
   :config
   (setq uniquify-buffer-name-style 'forward))
 

  "Turn on line numbers if major mode is programming-related."
  (unless (or (minibufferp)
              ;;(member major-mode display-line-numbers-exempt-modes)
	      (not (derived-mode-p 'prog-mode)))
    (display-line-numbers-mode)))
(global-display-line-numbers-mode)


  ;; prefer right side, then bottom for popup
  (which-key-setup-side-window-right-bottom))

;; Popup manager
(use-package popper
  :straight t
  :bind (("C-`"   . popper-toggle-latest)
         ("M-`"   . popper-cycle)
         ("C-M-`" . popper-toggle-type))
  :init
  (setq popper-reference-buffers
        '("\\*Messages\\*"
          "Output\\*$"
          "\\*Async Shell Command\\*"
          help-mode
	  helpful-mode
	  vterm-mode
          compilation-mode
	  "^\\*eshell.*\\*$" eshell-mode
          "^\\*shell.*\\*$"  shell-mode
          "^\\*term.*\\*$"   term-mode
          "^\\*vterm.*\\*$"  vterm-mode)
	popper-mode-line nil)
  ;;(popper-echo-mode +1)
  (popper-mode +1))


;; Completion
