Function: pulsar-mode
pulsar-mode is an interactive and natively compiled function defined
in pulsar.el.
Signature
(pulsar-mode &optional ARG)
Documentation
Set up pulsar for each function in pulsar functions lists.
The effective lists are pulsar-pulse-functions and
pulsar-pulse-region-functions. This is a buffer-local mode.
Also check pulsar-global-mode(var)/pulsar-global-mode(fun).
This is a minor mode. If called interactively, toggle the Pulsar 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 the variable pulsar-mode(var)/pulsar-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/3sr3j7hp5p1wsd8fv5763k239hzdxi1c-emacs-packages-deps/share/emacs/site-lisp/elpa/pulsar-1.4.1/pulsar.el
;;;; Mode setup
(define-minor-mode pulsar-mode
"Set up pulsar for each function in pulsar functions lists.
The effective lists are `pulsar-pulse-functions' and
`pulsar-pulse-region-functions'. This is a buffer-local mode.
Also check `pulsar-global-mode'."
:global nil
(if pulsar-mode
(progn
(when pulsar-resolve-pulse-function-aliases
(pulsar-resolve-function-aliases))
(add-hook 'post-command-hook #'pulsar-post-command-pulse nil 'local)
(add-hook 'after-change-functions #'pulsar--after-change-function nil 'local)
(when pulsar-pulse-on-window-change
(add-hook 'window-buffer-change-functions #'pulsar--pulse-on-window-change nil 'local)
(add-hook 'window-selection-change-functions #'pulsar--pulse-on-window-change nil 'local)))
(remove-hook 'post-command-hook #'pulsar-post-command-pulse 'local)
(remove-hook 'after-change-functions #'pulsar--after-change-function 'local)
(remove-hook 'window-buffer-change-functions #'pulsar--pulse-on-window-change 'local)
(remove-hook 'window-selection-change-functions #'pulsar--pulse-on-window-change 'local)))