This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-04
Channels
- # aleph (23)
- # announcements (1)
- # babashka (21)
- # beginners (70)
- # biff (3)
- # cider (8)
- # clj-kondo (45)
- # clj-yaml (9)
- # clojure (69)
- # clojure-europe (82)
- # clojure-nl (1)
- # clojure-norway (2)
- # clojurescript (34)
- # conjure (19)
- # core-typed (6)
- # cursive (2)
- # events (5)
- # fulcro (55)
- # honeysql (1)
- # integrant (18)
- # jobs (1)
- # lsp (124)
- # malli (10)
- # meander (1)
- # off-topic (26)
- # polylith (8)
- # reagent (7)
- # releases (1)
- # remote-jobs (1)
- # sci (2)
- # shadow-cljs (19)
- # squint (5)
- # vim (17)
- # xtdb (31)
Heya! Is there a way to make cider-connect use localhost and the port in .nrepl-port
without me asking any questions? I'd like it to be as fast as possible
I use this:
(defun cider-force-connect ()
(interactive)
(let ((repl (cider-current-repl nil nil)))
(when repl
(cider-quit repl))
(cider-connect '(:host "localhost" :port 48888))))
This works great... but it requires me to hardcode the nrepl port, which gets annoying with multiple projects
https://github.com/robert-stuttaford/.emacs.d/blob/master/cider.el#L48-L63
Speaking of which, I find this super useful. I call it cider-force-eval-buffer
, and it connects and evals, all in a single shortcut (no questions asked)
https://github.com/pesterhazy/emacs.d/blob/master/elisp/my-functions.el#L20
Because always the first thing I do is to eval the current buffer, so I might as well connect then as well
Just tried your snippet, works great @U0509NKGK!