dot/xinitrc, dot/xmodmap, setup: Configure keyboard using xmodmap files.
[profile] / dot / ercrc.el
index 2eeb2f1..55f67fb 100644 (file)
@@ -6,9 +6,13 @@
 (setq erc-nick "mdw"
       erc-user-full-name "Mark Wooding")
 
-(setq erc-fill-column 77
-      erc-timestamp-right-column 69
-      erc-fill-prefix "   ")
+(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-max-buffer-size (* 60 3000))
 
 (load "~/.erc-local.el")
 
@@ -20,8 +24,7 @@
   (setq truncate-lines nil
        truncate-partial-with-windows nil
        word-wrap t
-       wrap-prefix (concat (propertize "   >"
-                                       'face 'erc-prompt-face)
+       wrap-prefix (concat (propertize "    " 'face 'erc-prompt-face)
                            " ")))
 (add-hook 'erc-mode-hook 'mdw-erc-turn-off-truncate-lines)
 
@@ -31,7 +34,8 @@
       '(("irc.ssdis.loc" "#devel" "#jukebox" "#nextgen")
        ("cam.irc.devel.ncipher.com"
         "#devel" "#jukebox" "#nextgen" "#sec-team")
-       ("chiark.greenend.org.uk" "#chiark")))
+       ("chiark.greenend.org.uk" "#chiark")
+       ("irc.distorted.org.uk" "#distorted" "#jukebox")))
 
 (defvar mdw-erc-auto-greet-bots-alist
   `(("irc.ssdis.loc" "fastness"
     ("cam.irc.devel.ncipher.com" "fastness"
      ,(format "identpass mwooding %s" mdw-fastness-password))
     ("chiark.greenend.org.uk" "blight"
-     ,(format "identpass mdw %s" mdw-blight-password)))
+     ,(format "identpass mdw %s" mdw-blight-password))
+    ("tunnel.chiark.greenend.org.uk" "blight"
+     ,(format "identpass mdw %s" mdw-blight-password))
+    ("irc.distorted.org.uk" "blight"
+     ,(format "identpass mdw %s" mdw-distorted-password)))
   "*Alist of (SERVER-REGEXP BOT-NICK MESSAGE-FORM).
 Evaluate MESSAGE-FORM and sent to BOT-NICK when connected to a server which
 matches SERVER-REGEXP.")
@@ -52,3 +60,7 @@ matches SERVER-REGEXP.")
            (message (caddr l)))
        (erc-server-send (concat "PRIVMSG " bot " :" message))))))
 (add-hook 'erc-after-connect 'mdw-erc-auto-greet-bots)
+
+(defun erc-cmd-GREET ()
+  "Send greeting messages, according to `mdw-erc-auto-greet-bots-alist'."
+  (mdw-erc-auto-greet-bots erc-session-server (erc-current-nick)))