commit 537e87fed9dfdf9d9c48d708ab040fd4559c1892
parent c6b7034f42573f6ad80202f2bbc12ce1d8c5034f
Author: Crazazy <crazazy@tilde.cafe>
Date: Thu, 5 Jan 2023 14:21:20 +0100
add more erc defaults
Diffstat:
| M | emacs.org | | | 39 | +++++++++++++++++++++++---------------- |
1 file changed, 23 insertions(+), 16 deletions(-)
diff --git 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