Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify http_proxy and https_proxy at the same time. #91

Closed
hongyi-zhao opened this issue Apr 6, 2021 · 3 comments
Closed

Specify http_proxy and https_proxy at the same time. #91

hongyi-zhao opened this issue Apr 6, 2021 · 3 comments

Comments

@hongyi-zhao
Copy link

hongyi-zhao commented Apr 6, 2021

On Ubuntu 20.04, I try to use emacs-w3m within the self compiled git master version of Emacs. The emacs-w3m document told the following for proxy setting:

     (setq w3m-command-arguments
           (nconc w3m-command-arguments
                  '("-o" "http_proxy=http://proxy.hogege.com:8000/")))

But I want to set the http_proxy and https_proxy variables at the same time and tried with the following settings in ~/.emacs-w3m.el:

     (setq w3m-command-arguments
           (nconc w3m-command-arguments
                  '(
                  ("-o" "http_proxy=http://127.0.0.1:8000/")
                  ("-o" "https_proxy=http://127.0.0.1:8000/")
                  )
                  ))

It seems that the above settings doesn't work at all. Any hints will be highly appreciated.

Regards,
HY

@emacs-w3m-notifier
Copy link

emacs-w3m-notifier commented Apr 6, 2021 via email

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Apr 6, 2021

Thanks a lot. Based on your notes, I adopt the following settings in ~/.emacs-w3m.el now:

      (setq w3m-command-arguments
            (nconc w3m-command-arguments
                   '("-o" "http_proxy=http://127.0.0.1:8080/")
                   '("-o" "https_proxy=http://127.0.0.1:8080/")))

And the following setting in ~/.emacs.d/init.el:

(require 'w3m-load)

The above settings do the trick.

Regards,
HY

@Boruch-Baum
Copy link
Contributor

Good to hear. If you're happy with the solution, please close the issue (I can't do that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants