Skip to content

Instantly share code, notes, and snippets.

@chumpage
chumpage / erc-setup.el
Created September 26, 2011 23:34
emacs erc setup
(defun erc-needs-tunnel ()
(string= (call-config-script "erc-needs-tunnel.sh") "true"))
(defun erc-default-nick () (if (at-work) "<user1>" "<user2>"))
;; Have erc use a socks proxy when I'm at work to bypass the firewall
(when (and (erc-needs-tunnel)
(require 'socks nil t))
;; !!! fix
;; I shouldn't need this next line, but if I don't have it I get an error when I try