add irc and proxy config
This commit is contained in:
3 files changed
+45
No files matched your search
@@ -125,6 +125,8 @@ If freezing sometimes, decrease it. If stuttering, increase it.")
|
|||||||
(require 'init-flymake)
|
(require 'init-flymake)
|
||||||
(require 'init-org)
|
(require 'init-org)
|
||||||
(require 'init-file)
|
(require 'init-file)
|
||||||
|
(require 'init-proxy)
|
||||||
|
(require 'init-irc)
|
||||||
|
|
||||||
|
|
||||||
(setq custom-file (expand-file-name "custom.el" creature/cache-dir))
|
(setq custom-file (expand-file-name "custom.el" creature/cache-dir))
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
;; -*- coding: utf-8; lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(with-eval-after-load 'erc
|
||||||
|
(add-to-list 'erc-modules 'sasl)
|
||||||
|
(add-to-list 'erc-modules 'services)
|
||||||
|
(erc-update-modules)
|
||||||
|
|
||||||
|
(setq erc-server "irc.libera.chat"
|
||||||
|
erc-sasl-user "zedhugh"
|
||||||
|
erc-nick "zedhugh"
|
||||||
|
erc-user-full-name "Zedhugh Chen"
|
||||||
|
erc-email-userid "zedhugh@gmail.com"
|
||||||
|
;; erc-session-client-certificate t
|
||||||
|
erc-prompt-for-password nil
|
||||||
|
|
||||||
|
erc-prompt-for-nickserv-password nil
|
||||||
|
erc-use-auth-source-for-nickserv-password t
|
||||||
|
|
||||||
|
erc-kill-buffer-on-part t
|
||||||
|
erc-kill-queries-on-quit t
|
||||||
|
erc-kill-server-buffer-on-quit t
|
||||||
|
|
||||||
|
erc-autojoin-channels-alist '(("libera.chat" "#linuxba"))
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
|
(provide 'init-irc)
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
;; -*- coding: utf-8; lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(defun enable-socks-proxy ()
|
||||||
|
(interactive)
|
||||||
|
(require 'socks)
|
||||||
|
(setq socks-server '("Default server" "127.0.0.1" 1080 5))
|
||||||
|
(setq socks-override-functions t)
|
||||||
|
|
||||||
|
(setq url-gateway-method 'socks))
|
||||||
|
|
||||||
|
(defun disable-socks-proxy ()
|
||||||
|
(interactive)
|
||||||
|
(setq url-gateway-method 'native))
|
||||||
|
|
||||||
|
|
||||||
|
(provide 'init-proxy)
|
||||||
Reference in new issue
Block a user