 
 (use-package popwin
   :init
-  (setq display-buffer-function #'popwin:display-buffer)
   :config
   (push '("*Async Shell Command*" :noselect t) popwin:special-display-config)
   (push '("*Completions*" :stick t :noselect t) popwin:special-display-config)

      x-gtk-use-system-tooltips nil)                        ; allow tooltip theming

(add-hook 'after-init-hook                                  ; report init time
          (lambda ()
            (message "Time to initialize: %s"
                     (emacs-init-time))))
(add-hook 'prog-mode-hook                                   ; stuff for all programming modes

  :config
  (ivy-mode 1)
  :init
  (add-hook 'ivy-mode-hook #'(lambda ()
                             (setq ivy-height (/ (+ 2 (frame-height)) 3))))
  (setq ivy-use-virtual-buffers t                           ; add ‘recentf-mode’ and bookmarks to ‘ivy-switch-buffer’.
        ivy-virtual-abbreviate 'full                        ; use full path for abbreviation
