From 7da9628d96f4b14421637d9a059735c681a12e81 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 30 Oct 2020 19:22:00 -0400 Subject: [PATCH] app/irc: proc +irc-defer-notifications later Otherwise it happens too soon for the user to customize +irc-defer-notifications from their config.el. --- modules/app/irc/config.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/app/irc/config.el b/modules/app/irc/config.el index 30b5c1e5e..6730d5939 100644 --- a/modules/app/irc/config.el +++ b/modules/app/irc/config.el @@ -173,12 +173,13 @@ playback.") (use-package! circe-notifications :commands enable-circe-notifications :init - (if +irc-defer-notifications - (add-hook! 'circe-server-connected-hook - (setq +irc--defer-timer - (run-at-time +irc-defer-notifications nil - #'enable-circe-notifications))) - (add-hook 'circe-server-connected-hook #'enable-circe-notifications)) + (add-hook! 'circe-server-connected-hook + (defun +irc-init-circe-notifications-h () + (if (numberp +irc-defer-notifications) + (setq +irc--defer-timer + (run-at-time +irc-defer-notifications nil + #'enable-circe-notifications)) + (enable-circe-notifications)))) :config (setq circe-notifications-watch-strings +irc-notifications-watch-strings circe-notifications-emacs-focused nil