   :dependencies (company)
   :demand t
   :config
+
+  ;; Let's future-proof our patching here just in case we ever decide
+  ;; to lazy-load company-statistics.
+
+  (defun radian--enable-company-statistics-patches ()
+    (require 'company-statistics))
+
+  (add-hook 'el-patch-pre-validate-hook
+            #'radian--enable-company-statistics-patches)
 
   ;; Disable the message that is normally printed when Company
   ;; Statistics loads its statistics file from disk.


  ;; Lazy-load Ivy.

  (defvar ivy-mode-map
    (let ((map (make-sparse-keymap)))
      (define-key map [remap switch-to-buffer]
        'ivy-switch-buffer)

                    (replace-match (clojure-docstring-fill-prefix))))
              (lisp-indent-line))))
      (el-patch-unpatch 'clojure-in-docstring-p 'defsubst)
      (el-patch-unpatch 'clojure-indent-line 'defun)))

  (add-hook 'clojure-mode-hook #'radian-clojure-strings-as-docstrings-mode)

