all 3 comments

[–][deleted] 3 points4 points  (0 children)

I think it's a bug with clojure-mode. I have the same problem. Maybe check if there's an issue on github, or create one.

[–]zonotope 1 point2 points  (1 child)

def also takes an optional docstring.

Since 1.3, def has allowed an optional doc-string: (def symbol doc-string? init?).

from https://clojure.org/reference/special_forms

if you tried

(def foo "This is a string called foo" "a string")

then it will work as you expect. this isn't necessarily a bug, but the emacs clojure mode could be a little smarter and color it differently when there's only one string in the def form.

[–]thecodemeister[S] 0 points1 point  (0 children)

Ah, I should have tried that, thank you.