diff options
author | jao <jao@gnu.org> | 2025-08-01 02:44:54 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2025-08-01 02:44:54 +0100 |
commit | 039acfa78d44eee094979795a77305aa0ed0d750 (patch) | |
tree | 4ad8d5bb3d258f34d28a553da42d17b98790f4ad | |
parent | 59f035668d482f37b8af8857cdee650d5fe8ed31 (diff) | |
download | elibs-039acfa78d44eee094979795a77305aa0ed0d750.tar.gz elibs-039acfa78d44eee094979795a77305aa0ed0d750.tar.bz2 |
circe reconnections
-rw-r--r-- | init.el | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -2519,7 +2519,7 @@ :bind (:map circe-channel-mode-map (("C-c C-a" . lui-track-jump-to-indicator))) :init - (setq circe-chat-buffer-name "{target}" + (setq circe-chat-buffer-name "{target} - {network}" circe-default-realname "https://jao.io" circe-default-part-message "" circe-default-quit-message "" @@ -2527,6 +2527,7 @@ circe-server-coding-system '(undecided . undecided) circe-server-killed-confirmation 'ask-and-kill-all circe-server-auto-join-default-type :after-auth + circe-server-buffer-name "{network} - {host}:{port}" circe-format-say "({nick}) {body}" circe-format-self-say "(jao) {body}" circe-new-buffer-behavior 'ignore @@ -2592,6 +2593,16 @@ (advice-add 'circe-command-NAMES :after #'circe-command-NNICKS) + (defun jao-circe-reconnect-unmonitored () + (interactive) + (dolist (b (buffer-list)) + (with-current-buffer b + (when (and (derived-mode-p 'circe-server-mode) + circe-lagmon-disabled) + (circe-reconnect))))) + + (add-to-list 'jao-sleep-awake-functions #'jao-circe-reconnect-unmonitored) + (setq circe-network-options (list (jao-with-auth "libera" u p (list "Libera Chat" :nick u :channels jao-libera-channels |