Uncomfirmed fix of alert.el

This commit is contained in:
Curt Spark 2026-02-26 19:56:04 +00:00
parent 6b1ccb0b4b
commit 7a92259a71
2 changed files with 15 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@ tramp-autosave/
tramp tramp
history history
ido.last ido.last
network-security.data
recentf recentf
eln-cache/ eln-cache/
elpa/ elpa/

16
init.el
View File

@ -217,6 +217,7 @@
(use-package org-pomodoro (use-package org-pomodoro
:ensure t :ensure t
:after org :after org
:defer t
:config :config
(setq org-pomodoro-manual-break t) (setq org-pomodoro-manual-break t)
(setq org-pomodoro-keep-killed-pomodoro-time t) (setq org-pomodoro-keep-killed-pomodoro-time t)
@ -240,9 +241,20 @@
:ensure t :ensure t
:after org :after org
:config :config
(setq alert-default-style 'libnotify) (alert-define-style 'custom-org-alert-notification
(setq alert-libnotify-command '(sound-alert)) :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) (org-alert-enable)
; Update notifications whenever the agenda is refreshed
(add-hook 'org-finalize-agenda-hook 'org-alert-enable)
) )
; Org Mode Journalling ; Org Mode Journalling