From 3ebf9194f4a04b3af65555d2186661238c4db84a Mon Sep 17 00:00:00 2001 From: MitchMarq42 Date: Fri, 21 Apr 2023 21:42:09 -0800 Subject: [PATCH] Make refresh-delay a variable --- notibox.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/notibox.el b/notibox.el index 791f419..d4a4c6d 100644 --- a/notibox.el +++ b/notibox.el @@ -36,6 +36,8 @@ (defvar notibox-border-color "#808080") (defvar notibox-corner 'bottomright) (defvar notibox-padding 30) +(defvar alert-fade-time 5); seconds, also provided by `alert' package +(defvar notibox--refresh-delay 0.1) ; seconds. Probably don't change this one. (defun notibox--get-position () "Return the starting coordinate at which to place the notibox, as cons." (let* ((parent-width (frame-pixel-width)) @@ -106,7 +108,7 @@ (defun notibox/setup-timer () (interactive) - (run-with-timer 1 0.5 #'notibox--tail-echoarea)) + (run-with-timer notibox--refresh-delay notibox--refresh-delay #'notibox--tail-echoarea)) ;; (notibox--hide 'anything) (defun notibox-test-alert ()