Function: hl-todo--turn-on-mode-if-desired

hl-todo--turn-on-mode-if-desired is a natively compiled function defined in hl-todo.el.

Signature

(hl-todo--turn-on-mode-if-desired)

Documentation

Enable local minor mode hl-todo-mode(var)/hl-todo-mode(fun) if test succeeds.

Depends on hl-todo-include-modes and hl-todo-exclude-modes.

Source Code

;; Defined in /nix/store/b97f5zr6snxdbh1bgqmj50mq949vd13i-emacs-packages-deps/share/emacs/site-lisp/elpa/hl-todo-20261001.1547/hl-todo.el
(defun hl-todo--turn-on-mode-if-desired ()
  "Enable local minor mode `hl-todo-mode' if test succeeds.
Depends on `hl-todo-include-modes' and `hl-todo-exclude-modes'."
  (when (and (apply #'derived-mode-p hl-todo-include-modes)
             (not (apply #'derived-mode-p hl-todo-exclude-modes))
             (not (bound-and-true-p enriched-mode))
             (not (string-prefix-p " *temp*" (buffer-name))))
    (hl-todo-mode 1)))