This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-18
Channels
- # aleph (45)
- # aws (4)
- # beginners (56)
- # boot (2)
- # cider (45)
- # clara (2)
- # cljs-dev (9)
- # cljsrn (31)
- # clojure (71)
- # clojure-dusseldorf (8)
- # clojure-gamedev (1)
- # clojure-italy (22)
- # clojure-nl (1)
- # clojure-russia (46)
- # clojure-sg (1)
- # clojure-spec (5)
- # clojure-uk (40)
- # clojurescript (30)
- # community-development (3)
- # cursive (17)
- # data-science (1)
- # datomic (18)
- # emacs (3)
- # figwheel (1)
- # fulcro (19)
- # hoplon (12)
- # jobs (5)
- # leiningen (42)
- # off-topic (12)
- # om (2)
- # onyx (41)
- # re-frame (19)
- # ring-swagger (1)
- # rum (3)
- # shadow-cljs (4)
- # specter (7)
- # unrepl (2)
- # vim (25)
- # yada (24)
For some reason cider-nrepl can't dynamically font lock itself. But the code works for other projects...
Still no good solution for the ns/fn
problem, i have just commeted out the clojure-mode code
As I said, I have just commented out those lines in my clojure-mode. But I don't know if just removing a feature in clojure-mode is a good idea.
one thing, i haven't seen the clojure mode but the compiled font lock info is put in a cider var. perhaps you could inhibit the font locking when this var is present and not nil
I think some font locking from clojure-mode is still useful. For docstrings, keywords, etc.
This can be of help, I use these functions a lot when hacking on font lock: http://www.gnu.org/software/emacs/manual/html_node/elisp/Font-Lock-Basics.html
Yeah that's the extreme solution 😉
Of course
There's a very easy way to do it. But then the functions overwrite everything, even comments. 😛
@dpsutton Hm, from what I can tell at this point, these are the alternatives for the ns/part
problem.
1. Remove the feature in clojure-mode (it's not that important to font lock the namespace part, I'd say).
2. Set overwrite to t in the new font lock rules in CIDER, but then they overwrite even comments, so that's not so good.
3. Remove elements from clojure-font-lock-keywords
in clojure-mode when cider-font-lock-dynamically
is set (but then one loses colors if not jacked-in).
4. Remove elements from clojure-font-lock-keywords
in clojure-mode if cider--dynamic-font-lock-keywords
is set, but when? Maybe with some sort of hook?
5. Remove elements from clojure-font-lock-keywords
in CIDER, but that would be horribly complected with clojure-mode. Worst idea ever. 🙂
Even removing elements from clojure-font-lock-keywords
in clojure-mode would be complecting two functions such that you gotta keep them in sync.
@malabarba somehow it doesn’t 😞 and I don’t know how to debug