This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-03
Channels
- # announcements (12)
- # babashka (36)
- # beginners (126)
- # calva (26)
- # cider (10)
- # clj-kondo (71)
- # cljdoc (3)
- # cljsrn (2)
- # clojure (232)
- # clojure-australia (1)
- # clojure-europe (11)
- # clojure-france (20)
- # clojure-nl (4)
- # clojure-norway (1)
- # clojure-serbia (4)
- # clojure-uk (6)
- # clojurescript (62)
- # conjure (5)
- # cursive (12)
- # data-science (1)
- # datomic (57)
- # deps-new (1)
- # duct (3)
- # emacs (5)
- # events (8)
- # fulcro (6)
- # graalvm (5)
- # helix (3)
- # jobs (6)
- # jobs-discuss (3)
- # kaocha (4)
- # lsp (128)
- # malli (12)
- # missionary (22)
- # off-topic (1)
- # pathom (7)
- # polylith (27)
- # quil (1)
- # re-frame (20)
- # react (9)
- # reitit (12)
- # releases (8)
- # remote-jobs (3)
- # sci (3)
- # shadow-cljs (9)
- # spacemacs (10)
- # tools-deps (7)
- # vim (7)
- # xtdb (14)
Quick question:
How to configure user defined functions to be shown in "function color"?
i.e.
How to render foo
in same color as inc inc
I'd like to know this as well. I know it will work if you import the foo
function into another namespace. But within the same namespace it does not register it. Also, what theme are you using?
You can put the cursor on the character whose color you want to change and run M-x describe-face
.
That will tell you the name of the “https://www.gnu.org/software/emacs/manual/html_node/emacs/Faces.html”.
From there you can https://www.gnu.org/software/emacs/manual/html_node/emacs/Face-Customization.html the face or use https://www.gnu.org/software/emacs/manual/html_node/emacs/Colors.html of the face with M-x set-face-foreground
.
If it doesn’t seem like the correct face is being applied at all that’s probably because clojure-mode
’s font locking is very conservative:
> Precise font-locking requires additional data that can obtained from a running REPL (that’s how CIDER’s https://docs.cider.mx/cider/config/syntax_highlighting.html works) or from static code analysis.
> — https://github.com/clojure-emacs/clojure-mode#font-locking
You may need to use https://github.com/clojure-emacs/cider to get the behavior you want.