From c1e5ba85bb357805da9781da6714ff03d0df784e Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan <ram@leastauthority.com> Date: Mon, 13 Oct 2014 23:04:09 +0530 Subject: [PATCH] erc configs --- init.el | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/init.el b/init.el index 7863782..13b460c 100644 --- a/init.el +++ b/init.el @@ -40,3 +40,29 @@ ;; monokai (load-theme 'monokai t) + +;; erc +(require 'erc) + +(erc-autojoin-mode t) +(setq erc-autojoin-channels-alist + '((".*\\.freenode.net" "#tahoe-lafs") + (".*\\.oftc.net" "#LeastAuthority"))) + +;; check channels +(erc-track-mode t) +(setq erc-track-exclude-types '("JOIN" "NICK" "PART" "QUIT" "MODE" + + "324" "329" "332" "333" "353" "477")) +;; don't show any of this +(setq erc-hide-list '("JOIN" "PART" "QUIT" "NICK")) + +(defun start-erc () + "Connect to IRC." + (interactive) + (when (y-or-n-p "Do you want to start IRC? ") + (erc :server "irc.freenode.net" :port 6667 :nick "rkrishnan" :full-name "Ramakrishnan Muthukrishnan") + (erc :server "irc.oftc.net" :port 6667 :nick "rkrishnan" :full-name "Ramakrishnan Muthukrishnan"))) + +;; switch to ERC with Ctrl+c e +(global-set-key (kbd "C-c e") 'start-erc) ;; ERC -- 2.45.2