[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: |
Hongyi Zhao |
Subject: |
Re: Use regex in ~/.emacs.d/init.el to match no_proxy. |
Date: |
Wed, 7 Apr 2021 00:26:42 +0800 |
On Tue, Apr 6, 2021 at 7:32 PM Leo Butler <leo.butler@umanitoba.ca> wrote:
>
> 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
See the following screenshot:
[image: Screenshot from 2021-04-07 00-24-08.png]
What's wrong with my operation?
Regards
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China
- 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, 2021/04/06
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy.,
Hongyi Zhao <=
- 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
- Re: Use regex in ~/.emacs.d/init.el to match no_proxy., Tim Landscheidt, 2021/04/11