Variable: cider-format-code-options

cider-format-code-options is a customizable variable defined in cider-client.el.

Value

nil

Documentation

A map of options that will be passed to cljfmt to format code.

Assuming this is the Clojure map you want to use as cljfmt options:

  {:indents {org.me/foo [[:inner 0]]}
   :alias-map {"me" "org.me"}}

you need to encode it as the following plist:

  '(("indents" (("org.me/foo" (("inner" 0))))) ("alias-map" (("me" "org.me"))))

This variable was added, or its default value changed, in cider version 1.1.0.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-client.el
(defcustom cider-format-code-options nil
  "A map of options that will be passed to `cljfmt' to format code.
Assuming this is the Clojure map you want to use as `cljfmt' options:

  {:indents {org.me/foo [[:inner 0]]}
   :alias-map {\"me\" \"org.me\"}}

you need to encode it as the following plist:

  \\='((\"indents\" ((\"org.me/foo\" ((\"inner\" 0))))) (\"alias-map\" ((\"me\" \"org.me\"))))"
  :type '(repeat sexp)
  :group 'cider
  :package-version '(cider . "1.1.0"))