Open gongzhitaao opened 4 years ago
Hi @gongzhitaao :wave:, thanks for your contribution :+1:
That sounds like a good and inexpensive improvement 😄 Unfortunately I'm not really familiar with Lisp at all so I'll need to check and test if there might be problems when it comes to the special Emacs Lisp syntax derivations. Maybe someone with more experience post some feedback or some examples/links if it is used in other popular themes too without any disadvantages.
Some examples:
The only different between let*
and let
is let*
allows you to use variables previously defined.
https://github.com/arcticicestudio/nord-emacs/blob/d828752e270978a56bde19986c98b1bbe8f51386/nord-theme.el#L101
It would be much easier and less error-prone if we use
let*
instead oflet
.let*
allows to use the variable defined before the current line. For example: