Fork me on GitHub
#cider
<
2019-03-27
>
romain08:03:14

More related to emacs in general but is there a function to highlight function call? (ex (println "hello"))

bozhidar08:03:41

Highlight how?

romain09:03:01

Currently the face is the same as arguments. For my usage, I think I'd like to colorize it or might be make it italic

romain09:03:38

@bozhidar btw, thanks for all your amazing work and talks you give 🙂

bozhidar09:03:35

:man-bowing:

bozhidar09:03:05

The face of function names should become different when CIDER is running and you’ve enabled dynamic font-locking.

bozhidar09:03:16

Without a running REPL it’s hard to tell wether something is a function name or something else, but once CIDER is running it uses different colours for macros, special forms, core functions and other functions.

bozhidar09:03:34

The colours themselves can be tweaked, of course.

bozhidar09:03:21

(we are just using the standard faces for functions, built-ins and so on)

bozhidar09:03:26

Does this make sense?

romain09:03:30

that's perfect! Indeed defined function and defined var weren't activated

bozhidar09:03:11

You’re welcome!

bozhidar09:03:10

For everyone else - you can try (setq cider-font-lock-dynamically t) and see if you like it. (that turns on everything possible)

romain09:03:08

Hm it doesn't change anything, I guess I did something wrong. Edit: oh, it needed some kind of refreshing 😉

pesterhazy11:03:13

@bozhidar will try the fix asap, thanks for this!

Nick17:03:31

Is there a way to get cider to stop inserting [clojure.set :as set] in my file? I have a large number of om transactions with the unfortunate prefix of set/ and these keep breaking when clojure.set is required as set

Nick17:03:58

in my file I already have clojure.set required as s

dpsutton17:03:18

sounds like a clj-refactor issue

dpsutton17:03:00

i think there's a notion of common imports and you can hopefully prevent it from using that one

dpsutton18:03:48

so that's my guess 🙂

dpsutton18:03:55

@nick.matthews

Nick18:03:19

awesome, thanks, i’ll give that a try.

Nick18:03:11

perfect, that looks exactly like what i’m looking for. Thanks!

stathissideris21:03:50

is there any way to do something like cider-pprint-eval-last-sexp-to-repl but printing the result in the REPL instead of adding it as input in the REPL?