Hi
First of all, thanks for version 4! The overriding interface looks very
powerful, and I was able to figure out how to recreate the look of my
emacs from version 3 pretty quickly. The only thing I'm "stuck" on is
recreating the `alt-syntax` option from `modus-themes-syntax`. I get how
to override the colours, that's very clear from section 5.11.2.7 of the
manual. However, I'm not sure which colours I need to set to go back to
the alt-syntax look. I'm not that proficient in ELisp, so I haven't been
able to figure it out from the source code of version 3 either. Might I
suggest adding an example to the manual on how to recreate the
alt-syntax option of `modus-themes-syntax`?
All the best
Charlotte
> From: Charlotte Van Petegem <emacs@chvp.be>
> Date: Fri, 30 Dec 2022 11:50:39 +0100
>
> Hi
Hello Charlotte,
> First of all, thanks for version 4! The overriding interface looks very
> powerful, and I was able to figure out how to recreate the look of my
> emacs from version 3 pretty quickly. The only thing I'm "stuck" on is
> recreating the `alt-syntax` option from `modus-themes-syntax`. I get how
> to override the colours, that's very clear from section 5.11.2.7 of the
> manual. However, I'm not sure which colours I need to set to go back to
> the alt-syntax look. I'm not that proficient in ELisp, so I haven't been
> able to figure it out from the source code of version 3 either. Might I
> suggest adding an example to the manual on how to recreate the
> alt-syntax option of `modus-themes-syntax`?
Yes, I will add this to the manual. It's still a work-in-progress ahead
of the formal release on Sunday.
This gives you the 'alt-syntax':
(setq modus-themes-common-palette-overrides
'((builtin magenta)
(comment fg-dim)
(constant magenta-cooler)
(docstring magenta-faint)
(docmarkup green-faint)
(fnname magenta-warmer)
(keyword cyan)
(preprocessor cyan-cooler)
(string red-cooler)
(type magenta-cooler)
(variable blue-warmer)
(rx-construct magenta-warmer)
(rx-backslash blue-cooler)))
If you also want yellow comments and green strings:
(setq modus-themes-common-palette-overrides
'((builtin magenta)
(comment yellow-cooler)
(constant magenta-cooler)
(docstring green-faint)
(docmarkup magenta-faint)
(fnname magenta-warmer)
(keyword cyan)
(preprocessor cyan-cooler)
(string green-cooler)
(type magenta-cooler)
(variable blue-warmer)
(rx-construct magenta-warmer)
(rx-backslash blue-cooler)))
Another style worth considering is to make comments 'red-faint'. I
think it fits nicely with the 'red-cooler' strings of the original
'alt-syntax'.
All the best,
Protesilaos (or simply "Prot")
--
Protesilaos Stavrou
https://protesilaos.com