about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--users/glittershark/emacs.d/irc.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/users/glittershark/emacs.d/irc.el b/users/glittershark/emacs.d/irc.el
index 8ff48e994efb..1b634dec78f4 100644
--- a/users/glittershark/emacs.d/irc.el
+++ b/users/glittershark/emacs.d/irc.el
@@ -106,6 +106,8 @@ If the buffer is currently not visible, makes it sticky."
 
 (add-hook 'erc-connect-pre-hook 'my-erc-define-alerts)
 
+(advice-add #'erc-user-input :filter-return #'s-trim)
+
 (comment
  (my-erc-define-alerts)
  )