Emacs能够使用url.el或W3 Web浏览器等软件包访问Internet .
此外,Emacs Lisp包存档严重依赖于包url.el.
现在,如何配置Emacs以使用我的HTTP代理连接到Internet?
在代理背后的ELPA任何帮助的奖励积分.
是的,之前我遇到过HTTP代理问题.
Tre*_*son 49
对于w3m,此设置对我有用:
(setq url-proxy-services '(("no_proxy" . "work\\.com")
("http" . "proxy.work.com:911")))
Run Code Online (Sandbox Code Playgroud)
gav*_*koa 23
我的授权工作是:
(setq url-proxy-services
'(("no_proxy" . "^\\(localhost\\|10\\..*\\|192\\.168\\..*\\)")
("http" . "proxy.com:8080")
("https" . "proxy.com:8080")))
(setq url-http-proxy-basic-auth-storage
(list (list "proxy.com:8080"
(cons "Input your LDAP UID !"
(base64-encode-string "LOGIN:PASSWORD")))))
Run Code Online (Sandbox Code Playgroud)
适用于Emacs 24.3.它基于非公共API技巧,因此可能无法在其他Emacs版本中使用...
这有点旧了,但我也遇到了连接问题。我需要做的一件事是将我的证书添加到中gnutls-trustfiles以便连接。
(with-eval-after-load 'gnutls
(add-to-list 'gnutls-trustfiles "path/to/cert.crt"))
(setq url-proxy-services
'(("no_proxy" . "^\\(localhost\\|10\\..*\\|192\\.168\\..*\\)")
("http" . "proxy.com:8080")
("https" . "proxy.com:8080")))
Run Code Online (Sandbox Code Playgroud)