This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-14
Channels
- # announcements (3)
- # babashka (189)
- # beginners (157)
- # calva (5)
- # cider (5)
- # clj-kondo (7)
- # cljdoc (34)
- # clojure (61)
- # clojure-dev (2)
- # clojure-europe (42)
- # clojure-nl (15)
- # clojure-poland (1)
- # clojure-spec (5)
- # clojure-uk (6)
- # clojured (2)
- # clojurescript (31)
- # clojureverse-ops (8)
- # component (2)
- # cursive (41)
- # datomic (15)
- # depstar (44)
- # figwheel-main (9)
- # fulcro (14)
- # holy-lambda (1)
- # inf-clojure (13)
- # introduce-yourself (1)
- # jobs (1)
- # lsp (98)
- # malli (12)
- # off-topic (12)
- # pedestal (1)
- # polylith (3)
- # re-frame (51)
- # reitit (4)
- # releases (1)
- # reveal (5)
- # shadow-cljs (3)
- # tools-deps (56)
- # vim (12)
- # xtdb (36)
Hi, can anybody tell me the shortcut for set-ns (equiv to (in-ns ..)
) in inf-clojure?
if your cursor is in a file, you can C-c M-r
to require that namespace and then C-c M-n
to put the repl in that namespace
@dpsutton Thanks! I was looking at the help page (C-h f inf-clojure-mode) but it doesn't list these things. Where can I find a list of key bindings?
BTW, when I press C-c M-n
It says set-ns not configured for socket
(I entered REPL type socket
) during inf-clojure-connect
it only needs to know for how to query the repl. ie clojure.repl/doc, etc. babashka, lumo, planck, cljs, and clojure all have different ways to do some things. so it's important to set what type you are using, not that its a socket repl. You can evaluate (setq inf-clojure-repl-type 'clojure)
in the repl buffer to fix it
I started Socket-REPL using Leiningen by specifying :jvm-opts
cool. all inf-clojure cares about is that it's a clojure repl. so run (setq inf-clojure-repl-type 'clojure)
in the repl buffer
OK, so just evaluating (setq ..)
didn't work, but I disconnected inf-clojure and connected again with Socket-type: clojure
then C-c M-n
worked. Thanks again!