chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a2f12a9
)
dot/ercrc.el: Do something more useful for long input lines.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 7 Jan 2012 17:15:23 +0000
(17:15 +0000)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/dot/ercrc.el
b/dot/ercrc.el
index 4505b4a9e09e4541a88f33b3af8a52fdd784451f..2eeb2f1ae48bf06fedce3f72833b1e83e80fb64e 100644
(file)
--- a/
dot/ercrc.el
+++ b/
dot/ercrc.el
@@
-16,6
+16,15
@@
(setq erc-track-exclude-types '("NICK" "JOIN" "PART"))
(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