update implementation of creature/drink-timer

This commit is contained in:
zedhugh committed 2024-07-02 23:30:04 +08:00
1 parent 36c9b489e0
commit 8d5da0a159
1 file changed
+2 -2
+2 -2
View File
@@ -99,9 +99,9 @@
(setq creature/drink-timer (setq creature/drink-timer
(run-with-timer 1200 1200 (run-with-timer 1200 1200
(lambda () (lambda ()
(require 'alert) (require 'notifications)
(let ((msg (format-time-string "drink time: %Y-%m-%d %H:%M:%S"))) (let ((msg (format-time-string "drink time: %Y-%m-%d %H:%M:%S")))
(alert-notifications-notify `(:title ,msg :persistent 1))) (notifications-notify :title msg :timeout 0 :app-icon nil))
)))) ))))
(defun creature/kill-this-buffer () (defun creature/kill-this-buffer ()