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
|
||||
:commands enable-circe-notifications
|
||||
:init
|
||||
(if +irc-defer-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)))
|
||||
(add-hook 'circe-server-connected-hook #'enable-circe-notifications))
|
||||
#'enable-circe-notifications))
|
||||
(enable-circe-notifications))))
|
||||
:config
|
||||
(setq circe-notifications-watch-strings +irc-notifications-watch-strings
|
||||
circe-notifications-emacs-focused nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue