From 7a92259a71d8da11ea68b8af8bc8d407d422947c Mon Sep 17 00:00:00 2001 From: cspark Date: Thu, 26 Feb 2026 19:56:04 +0000 Subject: [PATCH] Uncomfirmed fix of alert.el --- .gitignore | 1 + init.el | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0871c0d..13d812d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ tramp-autosave/ tramp history ido.last +network-security.data recentf eln-cache/ elpa/ diff --git a/init.el b/init.el index 45b7ef2..5df0908 100644 --- a/init.el +++ b/init.el @@ -217,6 +217,7 @@ (use-package org-pomodoro :ensure t :after org + :defer t :config (setq org-pomodoro-manual-break t) (setq org-pomodoro-keep-killed-pomodoro-time t) @@ -240,9 +241,20 @@ :ensure t :after org :config - (setq alert-default-style 'libnotify) - (setq alert-libnotify-command '(sound-alert)) + (alert-define-style 'custom-org-alert-notification + :title "Custom Notification" + :notifier + (lambda (info) + ; 'info' is a plist containing :title, :message, :severity, etc. + (sound-alert (concat "ORG ALERT: " + ;(plist-get info :title) + (plist-get info :message))))) + + (setq alert-default-style 'custom-org-alert-notification) (org-alert-enable) + + ; Update notifications whenever the agenda is refreshed + (add-hook 'org-finalize-agenda-hook 'org-alert-enable) ) ; Org Mode Journalling