aboutsummaryrefslogtreecommitdiff
path: root/modules/signal-config.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-14 00:13:23 -0500
committerCraig Jennings <c@cjennings.net>2026-07-14 00:13:23 -0500
commit1296cc45ce892a3398289ea47ed869f11966ae49 (patch)
tree0b5d462a16559fa79e0eb3b754ef8e582c8a2379 /modules/signal-config.el
parentc69f2f56b00678d60effb5f3e5ce3ef635d9d83e (diff)
downloaddotemacs-1296cc45ce892a3398289ea47ed869f11966ae49.tar.gz
dotemacs-1296cc45ce892a3398289ea47ed869f11966ae49.zip
fix(signal): load notifications.el before the fallback notifier
The script-absent fallback called notifications-notify, which isn't autoloaded, so a fresh session without the notify script would die on void-function instead of showing the toast. The fallback now requires notifications.el when the function is unbound. Found while giving slack-config the same fallback.
Diffstat (limited to 'modules/signal-config.el')
-rw-r--r--modules/signal-config.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/signal-config.el b/modules/signal-config.el
index 2ee4403f..a1ec7933 100644
--- a/modules/signal-config.el
+++ b/modules/signal-config.el
@@ -143,6 +143,9 @@ BODY is formatted by `cj/signal--format-notify-body'. Installed as
(if script
(apply #'start-process "signel-notify" nil script "info" title text
(unless cj/signel-notify-sound (list "--silent")))
+ ;; notifications.el is not autoloaded; load it on the first fallback.
+ (unless (fboundp 'notifications-notify)
+ (require 'notifications))
(notifications-notify :title title :body text)))))
;;; signel — fork integration