cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
solf 2021-01-17T03:08:43.029400Z

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

bozhidar 2021-01-17T11:46:46.033600Z

Yeah, it's definitely not trivial, because you also have to be careful about the order in which the different fontification rules get applied.

bozhidar 2021-01-17T11:47:16.033800Z

I don't think you need to touch the syntax table, though.

bozhidar 2021-01-17T11:48:21.034300Z

This should give you a good idea how the font-locking works today.

solf 2021-01-17T05:09:44.030Z

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

yiorgos 2021-01-17T11:28:19.032500Z

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

yiorgos 2021-01-17T11:29:07.033Z

how can I jump to the Java code?

bozhidar 2021-01-17T11:46:02.033500Z

Same keybinding, provided the JDK source is on your classpath.

yiorgos 2021-01-17T12:28:35.035400Z

> provided the JDK source is on your classpath. I think that might be the issue, is always asking for Symbol: in the minibuffer

yiorgos 2021-01-18T20:58:51.037100Z

It seems that this is a Lein plugin but I am using tools.deps 🙂

vemv 2021-01-18T20:59:46.037300Z

I will adapt it at some point. Luckily I didn't hardcode things against Lein assumptions

👍 1