summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-08-15 21:26:39 -0500
committerCase Duckworth2021-08-15 21:26:39 -0500
commita6fc17f9aec8bf38d5a7ad4bb86f532ca3c596b9 (patch)
tree8381aaca1814c329a1ce4ba76d441f1ab0a7fb47
parentDon't error on bad drawers (diff)
downloademacs-a6fc17f9aec8bf38d5a7ad4bb86f532ca3c596b9.tar.gz
emacs-a6fc17f9aec8bf38d5a7ad4bb86f532ca3c596b9.zip
Disconnect erc on kill-emacs
-rw-r--r--init.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.el b/init.el index 69aafac..208cfe8 100644 --- a/init.el +++ b/init.el
@@ -368,6 +368,8 @@
368 "Skip `show-paren-mode' in `erc-mode'." 368 "Skip `show-paren-mode' in `erc-mode'."
369 (unless (derived-mode-p 'erc-mode) 369 (unless (derived-mode-p 'erc-mode)
370 (apply f r)))) 370 (apply f r))))
371
372 (add-hook 'kill-emacs-hook #'erc/disconnect)
371 373
372 (:hook erc-autoaway-mode 374 (:hook erc-autoaway-mode
373 erc-track-mode 375 erc-track-mode