help-gnu-emacs
[Top][All Lists]
Advanced

[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: Sun, 11 Apr 2021 21:17:15 +0800

On Sun, Apr 11, 2021 at 8:42 PM Tim Landscheidt <tim@tim-landscheidt.de> wrote:
>
> Joost Kremers <joostkremers@fastmail.fm> wrote:
>
> >> This is just what I wonder. Why can't we let Emacs use the
> >> human-readable regexp string representation in its init file?
>
> > I guess the reason is "because it hasn't been implemented". There was a
> > suggestion recently on the emacs-devel mailing list to add a raw syntax or
> > regexp syntax to the Elisp reader, but nothing came of it.
>
> > In your use case, however, what I would do would be to put the call to
> > `regexp-opt` into my init file, not its return value. That makes it much 
> > more
> > readable and easier to modify if you ever need to.
>
> … and that is also the huge advantage of not having only hu-
> man-readable strings in Emacs's init file, but being able to
> program in Emacs Lisp whatever is needed.  For "simple" cus-
> tomizations, I recommend the Customization interface: It al-
> lows to enter complex data structures in a guided way and
> does The Right Thing™.

Why do you use superscript `TM' here?

> Tim
>
>


-- 
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]