This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-17
Channels
- # babashka (4)
- # beginners (161)
- # calva (19)
- # cider (13)
- # circleci (16)
- # clj-kondo (7)
- # cljs-dev (3)
- # cljsrn (46)
- # clojure (105)
- # clojure-australia (2)
- # clojure-nl (15)
- # clojurescript (20)
- # conjure (14)
- # core-async (8)
- # cursive (3)
- # datomic (4)
- # figwheel (5)
- # fulcro (22)
- # graalvm (1)
- # hoplon (2)
- # kaocha (3)
- # leiningen (6)
- # malli (5)
- # off-topic (19)
- # re-frame (5)
- # reagent (1)
- # reitit (43)
- # releases (1)
- # reveal (14)
- # rewrite-clj (2)
- # rum (1)
- # shadow-cljs (31)
- # spacemacs (2)
- # sql (6)
- # xtdb (8)
I'd like to change the color of css classes in hiccup, in both "versions" (when used as [:div.classname
and [div {:class "classname"}
, such as in the joint screenshot. (to another color than the default keyword/string color)
I've never touched highlight syntax on emacs, what would be the best approach?
Should I just follow any font-lock generic guide or is there something specific about clojure-mode/cider highlighting that I need to take into account?
For now I'm thinking of creating a minor-mode and follow this guide:
http://ergoemacs.org/emacs/elisp_syntax_coloring.html
Seems to be harder than expected, I can't just easily add regexes to fontify non-keywords strings, seems like I need to much around with the syntax table
Yeah, it's definitely not trivial, because you also have to be careful about the order in which the different fontification rules get applied.
Is there a key combo to see the implementation of java code?
for example (iterate inc 1)
if I do M-.
on iterate
it will show me the implementation of iterate
which internally calls clojure.lang.Iterate/create
> provided the JDK source is on your classpath.
I think that might be the issue, is always asking for Symbol:
in the minibuffer
I created a high-quality plugin addressing this problem. I still need some feedback before announcing it elsewhere: https://github.com/clojure-emacs/cider-nrepl/issues/64#issuecomment-752921557 If you can give it a spin I'd appreciate it much!