From b6e99528898421c5fb87e2c27e1d059a630a2108 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 27 Jan 2020 11:40:05 +0000 Subject: [PATCH] Disable auto-fill-mode and company-mode in IRC buffers Why? - `company-mode` is too noisy in IRC buffers. - `auto-fill-mode` inserts newline characters that end up each being their own message, which means that I make more noise than I should in IRC. --- configs/shared/.emacs.d/wpc/irc.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/shared/.emacs.d/wpc/irc.el b/configs/shared/.emacs.d/wpc/irc.el index 790ecc283..b9a1e3131 100644 --- a/configs/shared/.emacs.d/wpc/irc.el +++ b/configs/shared/.emacs.d/wpc/irc.el @@ -148,6 +148,9 @@ (irc/message (string/format "Current IRC channel: %s" (cycle/current cycle)))))) +(add-hook 'erc-mode-hook (disable auto-fill-mode)) +(add-hook 'erc-mode-hook (disable company-mode)) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Keybindings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;