app/irc: proc +irc-defer-notifications later

Otherwise it happens too soon for the user to customize
+irc-defer-notifications from their config.el.
This commit is contained in:
Henrik Lissner 2020-10-30 19:22:00 -04:00
parent 6a82eedeea
commit 7da9628d96
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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