This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-26
Channels
- # ai (1)
- # announcements (7)
- # babashka (2)
- # beginners (23)
- # biff (3)
- # calva (1)
- # chlorine-clover (3)
- # cider (2)
- # clj-kondo (12)
- # clojure (25)
- # clojure-brasil (4)
- # clojure-europe (33)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (1)
- # clojurescript (30)
- # clr (6)
- # consulting (1)
- # cursive (14)
- # data-science (1)
- # datalevin (4)
- # datomic (3)
- # events (4)
- # graphql (1)
- # gratitude (2)
- # hoplon (10)
- # inf-clojure (3)
- # interceptors (1)
- # introduce-yourself (1)
- # off-topic (13)
- # pathom (2)
- # pedestal (12)
- # rdf (14)
- # releases (6)
- # sci (17)
- # shadow-cljs (12)
i have a macro that’s like a def
except adding the ability to define var meta not on meta of the name name of the def but also after the name so (def my-var "docstring" {:var :meta} ,,,)
. Can I teach cider to indent like a def and give it the (italic in my theme) docstring treatment?
You can change indentation of macro via https://docs.cider.mx/cider/config/indentation.html#dynamic-indentation, e. g.
{:style/indent 1}
As for docstring treatment, I believe you'll have to do it by extending https://github.com/clojure-emacs/clojure-mode#font-locking, like so
(put '>defn 'clojure-doc-string-elt 2)
🙏 2