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:
parent
6a82eedeea
commit
7da9628d96
1 changed files with 7 additions and 6 deletions
|
@ -173,12 +173,13 @@ playback.")
|
||||||
(use-package! circe-notifications
|
(use-package! circe-notifications
|
||||||
:commands enable-circe-notifications
|
:commands enable-circe-notifications
|
||||||
:init
|
:init
|
||||||
(if +irc-defer-notifications
|
(add-hook! 'circe-server-connected-hook
|
||||||
(add-hook! 'circe-server-connected-hook
|
(defun +irc-init-circe-notifications-h ()
|
||||||
(setq +irc--defer-timer
|
(if (numberp +irc-defer-notifications)
|
||||||
(run-at-time +irc-defer-notifications nil
|
(setq +irc--defer-timer
|
||||||
#'enable-circe-notifications)))
|
(run-at-time +irc-defer-notifications nil
|
||||||
(add-hook 'circe-server-connected-hook #'enable-circe-notifications))
|
#'enable-circe-notifications))
|
||||||
|
(enable-circe-notifications))))
|
||||||
:config
|
:config
|
||||||
(setq circe-notifications-watch-strings +irc-notifications-watch-strings
|
(setq circe-notifications-watch-strings +irc-notifications-watch-strings
|
||||||
circe-notifications-emacs-focused nil
|
circe-notifications-emacs-focused nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue