Function: embark-toggle-highlight
embark-toggle-highlight is an interactive and natively compiled
function defined in embark.el.
Signature
(embark-toggle-highlight)
Documentation
Toggle symbol highlighting using highlight-symbol-at-point.
Key Bindings
embark-identifier-map H
Source Code
;; Defined in /nix/store/lls066p88vbzffl5j0d16jbhwpn2zfz2-emacs-packages-deps/share/emacs/site-lisp/elpa/embark-20260610.302/embark.el
(defun embark-toggle-highlight ()
"Toggle symbol highlighting using `highlight-symbol-at-point'."
(interactive)
(let ((regexp (find-tag-default-as-symbol-regexp))
(highlighted (cl-find-if #'boundp
'(hi-lock-interactive-lighters
hi-lock-interactive-patterns))))
(if (and highlighted (assoc regexp (symbol-value highlighted)))
(unhighlight-regexp regexp)
(highlight-symbol-at-point))))