dot/ercrc.el: Do something more useful for long input lines.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 7 Jan 2012 17:15:23 +0000 (17:15 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 7 Jan 2012 17:34:54 +0000 (17:34 +0000)
Don't truncate; word wrap and include a distinctive prefix for wrapped
lines.

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