Skip to content

Commit

Permalink
Update default repl-requires
Browse files Browse the repository at this point in the history
This way it does not throw when connecting to joyride.
Originally was also an issue for nbb
(clojure-emacs#3061)
  • Loading branch information
benjamin-asdf committed Nov 29, 2022
1 parent f71d4fd commit 7b0ec8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cider-repl.el
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ you'd like to use the default Emacs behavior use
(make-obsolete-variable 'cider-repl-print-level 'cider-print-options "0.21")

(defvar cider-repl-require-repl-utils-code
'((clj . "(clojure.core/apply clojure.core/require clojure.main/repl-requires)")
'((clj . "(when-let [requires (resolve 'clojure.main/repl-requires)]
(clojure.core/apply clojure.core/require @requires))")
(cljs . "(require '[cljs.repl :refer [apropos dir doc find-doc print-doc pst source]])")))

(defcustom cider-repl-init-code (list (cdr (assoc 'clj cider-repl-require-repl-utils-code)))
Expand Down

0 comments on commit 7b0ec8b

Please sign in to comment.