diff options
author | Case Duckworth | 2021-08-15 21:26:39 -0500 |
---|---|---|
committer | Case Duckworth | 2021-08-15 21:26:39 -0500 |
commit | a6fc17f9aec8bf38d5a7ad4bb86f532ca3c596b9 (patch) | |
tree | 8381aaca1814c329a1ce4ba76d441f1ab0a7fb47 | |
parent | Don't error on bad drawers (diff) | |
download | emacs-a6fc17f9aec8bf38d5a7ad4bb86f532ca3c596b9.tar.gz emacs-a6fc17f9aec8bf38d5a7ad4bb86f532ca3c596b9.zip |
Disconnect erc on kill-emacs
-rw-r--r-- | init.el | 2 |
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 |