This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-31
Channels
- # announcements (3)
- # babashka (75)
- # beginners (16)
- # calva (124)
- # cider (10)
- # clara (2)
- # clj-kondo (1)
- # cljdoc (4)
- # cljs-dev (14)
- # clojure (104)
- # clojure-australia (4)
- # clojure-czech (5)
- # clojure-europe (14)
- # clojure-germany (48)
- # clojure-nl (4)
- # clojure-serbia (4)
- # clojure-uk (34)
- # clojurescript (60)
- # community-development (16)
- # conjure (12)
- # core-async (34)
- # cursive (42)
- # data-science (7)
- # deps-new (9)
- # depstar (1)
- # emacs (11)
- # events (2)
- # fulcro (15)
- # graalvm (1)
- # inf-clojure (1)
- # jobs (3)
- # jobs-discuss (1)
- # joker (7)
- # juxt (8)
- # lsp (20)
- # malli (42)
- # meander (4)
- # off-topic (5)
- # pathom (2)
- # polylith (13)
- # re-frame (39)
- # reagent (9)
- # reitit (31)
- # releases (2)
- # rewrite-clj (23)
- # shadow-cljs (39)
- # spacemacs (11)
- # specter (6)
- # tools-deps (8)
- # xtdb (12)
shadow runs a helpful little socket repl. you can easily use that with the following:
(defun personal/shadow-repl ()
(interactive)
(let* ((proj-dir (clojure-project-dir))
(shadow-file (expand-file-name "socket-repl.port"
(file-name-as-directory
(concat (file-name-as-directory proj-dir) ".shadow-cljs"))))
(shadow-port (when (file-exists-p shadow-file)
(with-temp-buffer
(insert-file-contents shadow-file)
(buffer-substring-no-properties (point-min) (point-max))))))
(if shadow-port
(let ((inf-clojure-custom-repl-type 'cljs))
(inf-clojure-connect "localhost" shadow-port))
(message "No shadow socket repl info found"))))
and then (shadow/node-repl)
and off you go. there's a function (help)
in the namespace you're in with some helpful goodies