Variable: cider-font-lock-dynamically

cider-font-lock-dynamically is a customizable variable defined in cider-mode.el.

Value

(macro core deprecated)

Documentation

Specifies how much dynamic font-locking CIDER should use.

Dynamic font-locking this refers to applying syntax highlighting to vars defined in the currently active nREPL connection. This is done in addition to clojure-modes usual (static) font-lock, so even if you set this variable to nil you'll still see basic syntax highlighting.

The value is a list of symbols, each one indicates a different type of var that should be font-locked:
   macro (default): Any defined macro gets the font-lock-keyword-face.
   function: Any defined function gets the font-lock-function-face.
   var: Any non-local var gets the font-lock-variable-name-face.
   deprecated (default): Any deprecated var gets the cider-deprecated-face
   face.
   core (default): Any symbol from clojure.core/cljs.core. The selected face will depend on type.
   Note that while rendering core, all types of vars (macro, function, var, deprecated)
   will be honored, regardless of the user's customization value.

The value can also be t, which means to font-lock as much as possible.

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

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-mode.el
;;; Dynamic font locking
(defcustom cider-font-lock-dynamically '(macro core deprecated)
  "Specifies how much dynamic font-locking CIDER should use.
Dynamic font-locking this refers to applying syntax highlighting to vars
defined in the currently active nREPL connection.  This is done in addition
to `clojure-mode's usual (static) font-lock, so even if you set this
variable to nil you'll still see basic syntax highlighting.

The value is a list of symbols, each one indicates a different type of var
that should be font-locked:
   `macro' (default): Any defined macro gets the `font-lock-keyword-face'.
   `function': Any defined function gets the `font-lock-function-face'.
   `var': Any non-local var gets the `font-lock-variable-name-face'.
   `deprecated' (default): Any deprecated var gets the `cider-deprecated-face'
   face.
   `core' (default): Any symbol from clojure.core/cljs.core.  The selected face will depend on type.
   Note that while rendering `core', all types of vars (`macro', `function', `var', `deprecated')
   will be honored, regardless of the user's customization value.

The value can also be t, which means to font-lock as much as possible."
  :type '(choice (set :tag "Fine-tune font-locking"
                      (const :tag "Any defined macro" macro)
                      (const :tag "Any defined function" function)
                      (const :tag "Any defined var" var)
                      (const :tag "Any defined deprecated" deprecated)
                      (const :tag "Any symbol from clojure.core" core))
                 (const :tag "Font-lock as much as possible" t))
  :group 'cider
  :package-version '(cider . "0.10.0"))