     (set-window-configuration ar/ivy-occur--win-config)
     (select-window (nth 0 (window-list))))
 
-  :config
   ;; Smex handles M-x command sorting. Bringing recent commands to the top.
   (use-package smex
     :ensure t)

(use-package counsel
  :ensure t
  :defer 0.1
  :bind (:map
         global-map
         ("C-c i" . counsel-semantic-or-imenu)

         :map wgrep-mode-map
         ("C-c C-c" . ar/wgrep-finish-edit)
         ("C-c C-k" . ar/wgrep-abort-changes))
  :config
  ;; `ar/ivy-occur',`ar/counsel-ag', `ar/wgrep-abort-changes' and `ar/wgrep-finish-edit' replicate a more
  ;; streamlined result-editing workflow I was used to in helm-ag.
  (defun ar/ivy-occur ()
