This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-09
Channels
- # announcements (28)
- # babashka (8)
- # bangalore-clj (1)
- # beginners (123)
- # boot (1)
- # bristol-clojurians (1)
- # calva (3)
- # cider (30)
- # clj-kondo (42)
- # cljs-dev (5)
- # clojure (260)
- # clojure-dev (11)
- # clojure-europe (7)
- # clojure-india (1)
- # clojure-italy (2)
- # clojure-losangeles (5)
- # clojure-nl (5)
- # clojure-portugal (15)
- # clojure-uk (51)
- # clojurescript (69)
- # cursive (6)
- # data-science (21)
- # datascript (17)
- # datomic (1)
- # emacs (29)
- # figwheel-main (11)
- # fulcro (89)
- # graphql (5)
- # hoplon (2)
- # hugsql (6)
- # jobs (11)
- # juxt (1)
- # leiningen (7)
- # luminus (1)
- # malli (3)
- # off-topic (64)
- # pathom (32)
- # project-updates (1)
- # re-frame (9)
- # reagent (10)
- # reitit (21)
- # ring (5)
- # ring-swagger (1)
- # shadow-cljs (8)
- # spacemacs (6)
- # xtdb (4)
I'm trying this: (setq cider-repl-shortcut-dispatch-char ?\?)
, but it doesn't seem to work, ,
is still the shortcut
@didibus You might have to set this before requiring CIDER, as it gets bound in the keymap of cider-repl-mode
.
I read the (awesome) docs @ https://docs.cider.mx/cider/config/project_config.html
I notice the mode selected is clojurescript-mode
- and it discusses using clojure-mode
too.
and the buffer you have open can be anything within the project, so not necessarily are you “in” clj/cljs major modes already when you do that action
an as an update to above question, I wanted to set cider-figwheel-main-default-options
and tried these 3 in this order - closing and opening a project.clj (has clojure-mode
active) buffer each time (the buffer I initiated cider-jack-in-clj&cljs
from (since dir-locals
are reloaded when buffer opens docs say):
((clojurescript-mode . ((cider-figwheel-main-default-options . "dev")))) ;; <- prompt asked me for build still
((clojure-mode . ((cider-figwheel-main-default-options . "dev")))) ;; <- prompt asked me for build still
((nil . ((cider-figwheel-main-default-options . "dev")))) ;; <- no more prompt - var setting was used
clojurescript-mode
is derived from clojure-mode
, so anything you set for clojure-mode
will get applied in clojurescript-mode
as well.
@bozhidar woah! didn’t realize syntax was wrong - will have to try all over again - but yeah, weird the nil
case worked if that’s why it wasn’t working
but you are saying what you do with the M-x
command here has it’s mode just depend on the file you are in?
so clojure-mode
is more universal than clojurescript-mode
for a clj/cljs project (covers more files). but if I try to jack-in from some, say html file buffer - the mode would still be wrong
Yeah, if you want to jack-in from all sorts of buffers you might use nil
(all modes) then. I always open some clojure file first, that’s why this is not an issue for me. :)
even though I think jack-in supports being called upon from any buffer from a file in the project dir