This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-01
Channels
- # announcements (11)
- # babashka (71)
- # beginners (34)
- # calva (25)
- # chlorine-clover (38)
- # cider (13)
- # clj-kondo (1)
- # cljsrn (2)
- # clojure (40)
- # clojure-australia (4)
- # clojure-europe (16)
- # clojure-france (3)
- # clojure-nl (4)
- # clojure-uk (16)
- # clojurescript (27)
- # conjure (2)
- # core-async (41)
- # core-logic (3)
- # cursive (1)
- # data-science (1)
- # datomic (16)
- # depstar (19)
- # emacs (7)
- # fulcro (33)
- # graalvm (4)
- # honeysql (20)
- # hugsql (4)
- # jobs (1)
- # juxt (4)
- # off-topic (48)
- # pathom (41)
- # reagent (9)
- # reitit (19)
- # remote-jobs (1)
- # shadow-cljs (20)
- # startup-in-a-month (2)
- # tools-deps (29)
- # vim (3)
- # xtdb (30)
Hi All, I'm sorry, newbie here... i'm using doom emacs now, and I don't know the shortcut for : 1. how to make my cider repl move to right panel? 2. [C c M p] >> is this the correct shortcut to send code from buffer to REPL? much appreciated for the help 😄
1. There are probably better ways to achieve this, but you can manually create a new window with one of the evil-window- and evil+/window- commands (bound to "SPC w" prefix by default) and switch to repl buffer using "SPC b B" 2. You usually don't want to send code to repl directly (or, equivalently, paste, which "C-c M-p" does iianm) but let cider evaluate it (former evaluates it in whatever namespace the repl currently is in, latter switches to the namespace your code defined last for span of evaluation), e.g. via "SPC m e e" (cider-eval-last-sexp) -- see "SPC m e" and "SPC m p" prefixes for more commands
Set the CIDER variable cider-repl-pop-to-buffer-on-connect
to nil
and then the REPL buffer doesn't get in the way.
Evaluation in source code buffers is far more effective and is always in the context of the correct namespace.
https://practicalli.github.io/clojure/repl-driven-devlopment.html#evaluating-source-code
@U9TGHG3LP thank you so much for the tips, it works like charm for point no 1. I'll try point no 2... Thanks again! 🙏
If your cursor is in the repl, I believe C-w L
will move the window to the right vertical split
Hi @adrianimanuel, in spacemacs, I would launch a spacemacs/cider-send-xx-to-repl
option and have a look to the suggested key binding. Look for the windows menu in doom in cheatsheet: https://gist.github.com/hjertnes/9e14416e8962ff5f03c6b9871945b165
Set the CIDER variable cider-repl-pop-to-buffer-on-connect
to nil
and then the REPL buffer doesn't get in the way.
Evaluation in source code buffers is far more effective and is always in the context of the correct namespace.
https://practicalli.github.io/clojure/repl-driven-devlopment.html#evaluating-source-code
@caumond somehow, i couldn't install spacemacs. it stuck in downloading resources. someone told me to use doom for the time being. Thank you so much for your answer