Function: doom-modeline-add-variable-watcher

doom-modeline-add-variable-watcher is a natively compiled function defined in doom-modeline-core.el.

Signature

(doom-modeline-add-variable-watcher SYMBOL WATCH-FUNCTION)

Documentation

Cause WATCH-FUNCTION to be called when SYMBOL is set if possible.

See docs of add-variable-watcher.

Source Code

;; Defined in /nix/store/1lcicrdd2r4b8rkc91nnn74ymk1jl6yd-emacs-packages-deps/share/emacs/site-lisp/elpa/doom-modeline-20260928.1632/doom-modeline-core.el
(defun doom-modeline-add-variable-watcher (symbol watch-function)
  "Cause WATCH-FUNCTION to be called when SYMBOL is set if possible.

See docs of `add-variable-watcher'."
  (when (fboundp 'add-variable-watcher)
    (add-variable-watcher symbol watch-function)))