Function: dash-fontify-mode
dash-fontify-mode is an autoloaded, interactive and byte-compiled
function defined in dash.el.
Signature
(dash-fontify-mode &optional ARG)
Documentation
Toggle fontification of Dash special variables.
This is a minor mode. If called interactively, toggle the
Dash-Fontify mode mode. If the prefix argument is positive,
enable the mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable
the mode if ARG is nil, omitted, or is a positive number.
Disable the mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate dash-fontify-mode(var)/dash-fontify-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Dash-Fontify mode is a buffer-local minor mode intended for Emacs
Lisp buffers. Enabling it causes the special variables bound in
anaphoric Dash macros to be fontified. These anaphoras include
it, it-index, acc, and other. In older Emacs versions
which do not dynamically detect macros, Dash-Fontify mode
additionally fontifies Dash macro calls.
See also dash-fontify-mode-lighter and
global-dash-fontify-mode(var)/global-dash-fontify-mode(fun).
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
;;;###autoload
(define-minor-mode dash-fontify-mode
"Toggle fontification of Dash special variables.
Dash-Fontify mode is a buffer-local minor mode intended for Emacs
Lisp buffers. Enabling it causes the special variables bound in
anaphoric Dash macros to be fontified. These anaphoras include
`it', `it-index', `acc', and `other'. In older Emacs versions
which do not dynamically detect macros, Dash-Fontify mode
additionally fontifies Dash macro calls.
See also `dash-fontify-mode-lighter' and
`global-dash-fontify-mode'."
:lighter dash-fontify-mode-lighter
(if dash-fontify-mode
(font-lock-add-keywords nil dash--keywords t)
(font-lock-remove-keywords nil dash--keywords))
(static-if (fboundp 'font-lock-flush)
;; Added in Emacs 25.
(font-lock-flush)
(when font-lock-mode
;; Unconditionally enables `font-lock-mode' and is marked
;; `interactive-only' in later Emacs versions which have
;; `font-lock-flush'.
(font-lock-fontify-buffer))))