This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-21
Channels
- # aws (14)
- # babashka (35)
- # beginners (163)
- # boot (2)
- # calva (5)
- # cider (30)
- # clojure (143)
- # clojure-colombia (1)
- # clojure-europe (5)
- # clojure-nl (11)
- # clojure-spec (1)
- # clojure-uk (16)
- # clojurescript (71)
- # community-development (2)
- # conjure (1)
- # cursive (6)
- # datomic (30)
- # duct (4)
- # figwheel-main (11)
- # fulcro (28)
- # graalvm (3)
- # graphql (23)
- # hoplon (36)
- # jackdaw (24)
- # kaocha (16)
- # lambdaisland (1)
- # leiningen (4)
- # luminus (3)
- # meander (4)
- # observability (1)
- # off-topic (10)
- # pathom (5)
- # re-frame (27)
- # reitit (7)
- # remote-jobs (1)
- # sci (17)
- # shadow-cljs (22)
- # spacemacs (14)
- # sql (61)
- # testing (3)
- # tools-deps (27)
- # vim (2)
- # xtdb (18)
- # yada (2)
Hi, I just started using spacemacs and was wondering if anyone here might be able to answer my question. In cljc
files only the clj
parts are highlighted, cljs
parts are greyed out. I’d like for them both to be highlighted at once. I can do that by setting the major mode to clojurescript, but was wondering if there’s a way to “turn on” highlighting for both targets in cljc
files. Anyone familiar with clojurec mode have any insight?
The only thing I found in the docs refers to the REPL, but maybe having a ClojureScript repl running would highlight both (just a guess) https://docs.cider.mx/cider/0.25/cljs/up_and_running.html#working-with-cljc-files
I was wondering, that too. I tried keeping a cljs repl running, but doesn’t seem to do what I want.
And hi, by the way! Thanks for the great tutorials on spacemacs! Helped a lot with getting started.
Hello and thanks. There are some options on the dynamic syntax highlighting page. I wonder if its specific things that are not highlighted, rather than all cljs code... https://docs.cider.mx/cider/0.25/config/syntax_highlighting.html Also the #cider channel has several maintainers of CIDER so they should know in general, assuming no answers are forthcoming in this channel.
ah ok great, thanks. I wasn’t sure if it was an issue with my specfic config since I’m using spacemacs or something with cider generally.
Its not always obvious where the cause may be. If you can share the code I can give it a try in my Spacemacs setup.
Ah that last link you sent is brilliant, it was this:
(setq cider-font-lock-reader-conditionals nil)
Ah yes, I just found this issue with the same question, very useful to know. https://github.com/clojure-emacs/clojure-mode/issues/456#issuecomment-339931350
ah great. yeah.. exact same question! Your google fu is better than mine. Thanks so much for the help! really appreciate it 🙂
I wonder if starting the cljs repl didn’t work because of something else weird in my config.. I just connected to a shadow-cljs nrepl I always keep running.
seems many people find a few challenges using Cider and shadow-cljs together, there seems to be quite a few configs to set.