Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a user option to configure blink speed. #66

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion puni.el
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ Nil means use `pulse-highlight-start-face'."
'puni-blink-for-sexp-manipulating
"Nov 11 2023")

(defcustom puni-blink-pulse-delay pulse-delay
"The delay between changes in color when blinking.

See `pulse-delay' and `puni-blink-for-sexp-manipulating'."
:type 'number
:group 'puni)

;;;; Internals

(defvar puni--debug nil
Expand Down Expand Up @@ -2085,7 +2092,8 @@ line and the point, don't move and return nil."
"Maybe blink the region between BEG and END.
This depends on `puni-blink-for-sexp-manipulating'."
(when puni-blink-for-sexp-manipulating
(pulse-momentary-highlight-region beg end puni-blink-region-face)))
(let ((pulse-delay puni-blink-pulse-delay))
(pulse-momentary-highlight-region beg end puni-blink-region-face))))

(defun puni--beg-pos-of-sexps-around-point ()
"Beginning position of consecutive delimiters after current list."
Expand Down
Loading