系统: manjaro linux i3wm
emacs 29.0.91
开启了 clash 代理 并且终端也挂了代理
export http_proxy='127.0.0.1:7890'
export https_proxy='127.0.0.1:7890'
export ALL_PROXY='socks5://127.0.0.1:7891'
emacs中没有设置过代理
问题来了:
从终端启动
执行emacs 可以正常下载包
执行emacs -nw 可以正常下载包
从GUI启动
不能正常下载包 卡住
从i3wm启动
不能正常下载包 卡住
org
2
那你为什么不试试emacs的代理设置呢
(when (display-graphic-p)
(setq url-proxy-services '(("http" . "127.0.0.1:7890"))))
1 个赞
很多程序并不尊重 http_proxy 这个环境变量的,而且很可能 GUI Emacs 没有拿到这个环境变量
(setq url-proxy-services
'(("http" . "http://127.0.0.1:7890")
("https" . "http://127.0.0.1:7890")))
设置了也不行 卡住 是不是要放到 early-init.el
不知道啊,这个东西本来就不是用来实现全局代理的,不要指望所有程序都有用