From 0f7eb8bee927165e975eb43a0f92acb855033ef9 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 14 Oct 2021 20:34:46 -0500 Subject: Quit all circe buffers on quit --- init.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index e015729..c2a3579 100644 --- a/init.el +++ b/init.el @@ -1261,7 +1261,13 @@ specific to most general, they are these: nyan-mode nil line-number-mode nil column-number-mode nil - file-percentage-mode nil))) + file-percentage-mode nil)) + + (add-hook 'kill-emacs-hook + (defun circe-quit-all () + (ignore-errors + (advice-remove 'circe-command-GQUIT 'circe-gquit@kill-buffer) + (circe-command-GQUIT "Quitting Emacs, bye!"))))) (setup (:straight (command-log-mode :host github -- cgit 1.4.1-21-gabe81