 
 ;; Package list
 (use-package ag
-  :ensure t)
+  :ensure t
+  :config
+  (add-hook 'ag-search-finished-hook 'next-error-follow-minor-mode)
+  (setq ag-highlight-search t))
 
 (use-package cider
   :after (clojure-mode)

  :ensure t
  :config
  (define-key projectile-mode-map (kbd "M-p") 'projectile-command-map)
  (projectile-mode 1))

(use-package rainbow-delimiters

  (interactive)
  (exchange-point-and-mark)
  (deactivate-mark nil))

(defun projectile-ag-regex ()
  (interactive)
  (let ((current-prefix-arg '(4)))
    (call-interactively 'projectile-ag)))

;; Changes from the customize UI
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
