dot/ercrc.el: Do something more useful for long input lines.
[profile] / dot / ercrc.el
index 4505b4a..2eeb2f1 100644 (file)
 
 (setq erc-auto-query 'buffer)
 
+(defun mdw-erc-turn-off-truncate-lines ()
+  (setq truncate-lines nil
+       truncate-partial-with-windows nil
+       word-wrap t
+       wrap-prefix (concat (propertize "   >"
+                                       'face 'erc-prompt-face)
+                           " ")))
+(add-hook 'erc-mode-hook 'mdw-erc-turn-off-truncate-lines)
+
 (setq erc-autojoin t
       erc-autojoin-domain-only nil
       erc-autojoin-channels-alist