Add: app/irc: include disconnect hook code
This commit is contained in:
parent
fbf80489da
commit
4f4176c646
1 changed files with 4 additions and 0 deletions
|
@ -98,6 +98,10 @@ playback.")
|
|||
|
||||
(add-hook 'circe-channel-mode-hook #'turn-on-visual-line-mode)
|
||||
|
||||
(defun +irc*circe-disconnect-hook (&rest _)
|
||||
(run-hooks '+irc-disconnect-hook))
|
||||
(advice-add 'circe--irc-conn-disconnected :after #'+irc*circe-disconnect-hook)
|
||||
|
||||
;; Let `+irc/quit' and `circe' handle buffer cleanup
|
||||
(map! :map circe-mode-map [remap kill-buffer] #'bury-buffer)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue