Move IRC function definitions up to top level

This commit is contained in:
Evie Litherland-Smith 2024-07-30 07:36:43 +01:00
parent b352d8cf3b
commit 83b0fd286a

View file

@ -1135,9 +1135,8 @@ Calls `project-remember-projects-under' for ~/Projects/"
:commands erc-compute-nick :commands erc-compute-nick
:custom :custom
(erc-nick (user-login-name)) (erc-nick (user-login-name))
(erc-user-full-name (user-full-name)) (erc-user-full-name (user-full-name)))
:config
(when (require 'password-store nil :noerror)
(defun my/libera-chat-connect () (defun my/libera-chat-connect ()
"Connect to irc.libera.chat directly." "Connect to irc.libera.chat directly."
(interactive) (interactive)
@ -1145,7 +1144,7 @@ Calls `project-remember-projects-under' for ~/Projects/"
(require 'password-store) (require 'password-store)
(erc-tls (erc-tls
:server "irc.libera.chat" :server "irc.libera.chat"
:password (password-store-get 'irc.libera.chat))) :password (password-store-get 'social/irc.libera.chat)))
(defun my/znc-connect () (defun my/znc-connect ()
"Connect to my ZNC IRC bouncer." "Connect to my ZNC IRC bouncer."
(interactive) (interactive)
@ -1155,7 +1154,7 @@ Calls `project-remember-projects-under' for ~/Projects/"
:server "xenia.me.uk" :server "xenia.me.uk"
:port 6697 :port 6697
:nick (concat (erc-compute-nick) "/liberachat") :nick (concat (erc-compute-nick) "/liberachat")
:password (password-store-get 'znc))))) :password (password-store-get 'local/znc)))
(use-package eww (use-package eww
:defer t :defer t