[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use regex in ~/.emacs.d/init.el to match no_proxy.
From: |
Leo Butler |
Subject: |
Re: Use regex in ~/.emacs.d/init.el to match no_proxy. |
Date: |
Tue, 06 Apr 2021 06:32:52 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hongyi Zhao <hongyi.zhao@gmail.com> writes:
> On Ubuntu 20.04, I set the following proxy settings in ~/.emacs.d/init.el,
>
> ;;; begin
> (setq url-proxy-services '(
> ("no_proxy" .
> "^\\(.*\\.cn\\|localhost\\|10\\..*\\|127\\..*\\|172\\.16\\..*\\|172\\.17\\..*\\|192\\.168\\..*\\)")
> ; "http://127.0.0.1:8080" doesn't work
> ("http" . "127.0.0.1:8080")
> ("https" . "127.0.0.1:8080")
> ))
> ;;; end
>
> As you can see, the "no_proxy" string is rather cumbersome, and I want
> to express the following, but I still don't know what to do:
>
> "*.cn,localhost,10.0.0.0/8,127.0.0.0/8,172.16.0.0/12,192.168.0.0/16"
>
> Any hints will be highly appreciated.
C-h i f regexp-opt RET
- Use regex in ~/.emacs.d/init.el to match no_proxy., Hongyi Zhao, 2021/04/06
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy.,
Leo Butler <=
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy., Hongyi Zhao, 2021/04/06
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy., Gregory Heytings, 2021/04/06
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy., Hongyi Zhao, 2021/04/06
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy., tomas, 2021/04/07
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy., Hongyi Zhao, 2021/04/07
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy., Joost Kremers, 2021/04/08
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy., Hongyi Zhao, 2021/04/10
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy., Joost Kremers, 2021/04/10
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy., Hongyi Zhao, 2021/04/10
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy., Joost Kremers, 2021/04/11