Fork me on GitHub
#spacemacs
<
2021-08-03
>
tvaisanen09:08:34

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

Mario C.14:08:32

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?

tvaisanen15:08:20

I'm using doom-palenight.

zane18:08:05

You can put the cursor on the character whose color you want to change and run M-x describe-face.

tvaisanen18:08:27

Thanks, will try that tomorrow.

zane18:08:10

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

zane18:08:52

You may need to use https://github.com/clojure-emacs/cider to get the behavior you want.