summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--emacs.org39
1 files changed, 23 insertions, 16 deletions
diff --git a/emacs.org b/emacs.org
index 4b2d975..92bf0fa 100644
--- a/emacs.org
+++ b/emacs.org
@@ -75,23 +75,30 @@ Also, if you just stumbled accross this at random, there is an easy tangle butto
     with my preferred nickname
     #+begin_src emacs-lisp :tangle emacsconfig/extras.el
       (use-package erc
-	:custom
-	(erc-server-reconnect-attempts 10)
-	(erc-nick "crazazy")
-	:config
-	(defmacro irc-quickjoin (servername url &optional nick)
-	  "create a function to quickly join a server. Servers can be joined with M-x SERVERNAME-irc"
-	  `(defun ,(intern (concat (symbol-name servername) "-irc")) (password)
-	     (interactive (list (password-read "Password: ")))
-	     (erc-tls :server ,url
-		      :nick ,(if nick
-				 nick
-			       "crazazy")
-		      :port 6697
-		      :password password)))
+        :custom
+        (erc-server-reconnect-attempts 10)
+        (erc-nick "crazazy")
+        (erc-autojoin-channels-alist '(("tilde.chat"
+                                        "#cafe"
+                                        "#meta")
+                                       ("libera.chat"
+                                        "#emacs"
+                                        "#haskell"
+                                        "#systemcrafters")))
+        :config
+        (defmacro irc-quickjoin (servername url &optional nick)
+          "create a function to quickly join a server. Servers can be joined with M-x SERVERNAME-irc"
+          `(defun ,(intern (concat (symbol-name servername) "-irc")) (password)
+             (interactive (list (password-read "Password: ")))
+             (erc-tls :server ,url
+                      :nick ,(if nick
+                                 nick
+                               "crazazy")
+                      :port 6697
+                      :password password)))
 
-	(irc-quickjoin tilde "eu.tilde.chat")
-	(irc-quickjoin libera "irc.libera.chat"))
+        (irc-quickjoin tilde "eu.tilde.chat")
+        (irc-quickjoin libera "irc.libera.chat"))
     #+end_src
 *** Dashboard
     Gives me access to the most recent files I edited, and some other stuff that I don't really care about