 
   ;; Enable Paredit when editing Lisps and using Lisp REPLs.
 
-  (dolist (hook '(emacs-lisp-mode-hook
-                  lisp-interaction-mode-hook
-                  scheme-mode-hook))
-    (add-hook hook 'enable-paredit-mode))
+  (add-hook 'emacs-lisp-mode-hook #'paredit-mode)
+  (add-hook 'lisp-interaction-mode #'paredit-mode)
+  (add-hook 'scheme-mode-hook #'paredit-mode)
 
   (when (radian-package-enabled-p 'clojure-mode)
-    (add-hook 'clojure-mode-hook 'enable-paredit-mode))
+    (add-hook 'clojure-mode-hook #'paredit-mode))
 
   (when (radian-package-enabled-p 'cider)
-    (add-hook 'cider-repl-mode-hook 'enable-paredit-mode))
+    (add-hook 'cider-repl-mode-hook #'paredit-mode))
 
   (when (radian-package-enabled-p 'geiser)
-    (add-hook 'geiser-repl-mode-hook 'enable-paredit-mode)))
+    (add-hook 'geiser-repl-mode-hook #'paredit-mode)))
 
 ;; Keeps indentation correct at all times.
 (use-package aggressive-indent

  ;; [1], we must add a grouped backend for things to work properly.
  ;;
  ;; [1]: https://github.com/hotpxl/company-irony-c-headers
  (add-hook 'irony-mode-hook
            (lambda ()
              (add-to-list 'company-backends '(company-irony-c-headers
                                               company-irony)))))

;; ElDoc integration for Irony.
(use-package irony-eldoc

  ;; company-irony seems to only be able to work in a single buffer.
  ;;
  ;; [1]: https://github.com/Sarcasm/irony-mode
  (add-hook 'irony-mode-hook #'irony-cdb-autosetup-compile-options)

  ;; Automatically install irony-server if it is missing. irony-server
  ;; is necessary for Irony to work at all!
