dot/ercrc.el: Configure automatic buffer truncation.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 14 May 2012 15:41:04 +0000 (16:41 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 14 May 2012 15:41:04 +0000 (16:41 +0100)
Currently allows about 3000 lines of stuff based on an empirically
determined average of 60 characters per line.

dot/ercrc.el

index 8ccbbb8..1c3881f 100644 (file)
@@ -6,9 +6,13 @@
 (setq erc-nick "mdw"
       erc-user-full-name "Mark Wooding")
 
+(if (not (memq 'truncate erc-modules))
+    (setq erc-modules (cons 'truncate erc-modules)))
+
 (setq erc-fill-column 76
       erc-timestamp-right-column 68
-      erc-fill-prefix "   ")
+      erc-fill-prefix "   "
+      erc-max-buffer-size (* 60 3000))
 
 (load "~/.erc-local.el")