From 27bde6b87d8fbc17466d71ed4a76208db0825c79 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Thu, 10 Jan 2019 19:16:46 +0000 Subject: [PATCH] IRC configuration has been added to the default user config --- config/fg42.user.el | 25 +++++++++++++++++++++++++ lib/extensions/irc/init.el | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/config/fg42.user.el b/config/fg42.user.el index 0554bb3..5646e6e 100644 --- a/config/fg42.user.el +++ b/config/fg42.user.el @@ -28,6 +28,7 @@ 'php 'python 'arduino + 'irc 'latex) @@ -71,3 +72,27 @@ ;; ;; abilities like clojure which uses the lien tools need to find ;; specific tools (lein in this case) in your exec-path. + + +;; IRC Extension configuration +;; Setup all the servers and channels you need +;; (setq irc-servers +;; '(("irc.freenode.net" +;; :port 6697 +;; :encryption tls +;; :channels ("#5hit" "#emacs")))) + +;; Set you nickname +;; (setq irc-nickname "awesome-fg42-user") + +;; You can use password manager for storing you IRC credentials. +;; NOTE: you need to have a pair of GPG keys for this. +;; +;; Add the following to your ~/.authinfo.gpg : +;; +;; machine freenode login port nickserv password +;; +;; Or if you don't want to use the password manager your can directly +;; set it up like this: +;; (setq irc-auth '(("freenode" nickserv "some_user" "p455w0rd") +;; ("freenode" chanserv "some_user" "#channel" "passwd99")) diff --git a/lib/extensions/irc/init.el b/lib/extensions/irc/init.el index 3886d13..717583d 100644 --- a/lib/extensions/irc/init.el +++ b/lib/extensions/irc/init.el @@ -56,7 +56,7 @@ It returns nil if no password is available." ;; Turn on debugging if the global debuging was enabled (setq rcirc-debug-flag debug-on-error) - ;;(setq rcirc-server-alist irc-servers) + (setq rcirc-server-alist irc-servers) (setq rcirc-authinfo (or (irc/extract-secrets-from-auth-source) irc-auth)) (setq rcirc-default-nick irc-nickname)