about summary refs log tree commit diff
path: root/configs/shared/.emacs.d/wpc/irc.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-27T11·40+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-27T11·40+0000
commitb6e99528898421c5fb87e2c27e1d059a630a2108 (patch)
treee361ce0d24a0d5189ff75d1e24bcfe170538a78c /configs/shared/.emacs.d/wpc/irc.el
parentfb51c8b458bab2002949b3fad9aaaccda035196d (diff)
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.
Diffstat (limited to 'configs/shared/.emacs.d/wpc/irc.el')
-rw-r--r--configs/shared/.emacs.d/wpc/irc.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/configs/shared/.emacs.d/wpc/irc.el b/configs/shared/.emacs.d/wpc/irc.el
index 790ecc283587..b9a1e3131769 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
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;