reddit / emacs

Theme preview with load-theme

_chococat_ · 2022-10-28 22:42
I recently have switched from using ivy/counsel to vertico/consult/embark/marginalia. Sometime during this transition, when I ran `load-theme`, it would activate each theme as I scrolled through the list, giving a preview of the theme with the current windows. When I finalized my configuration, I found that I no longer got theme previews when running `load-theme`. Did I imagine this functionality? Does anyone know how to set this up? I read through the docs for consult and embark and didn't see anything relevant. Thanks!
igorepst · 2022-10-28 23:30
From the official documentation: `consult-theme`: Select a theme and disable all currently enabled themes. Supports live preview of the theme while scrolling through the candidates. Yes, it works for me
thriveth · 2022-10-29 11:24
It Works For Me™. I wonder if you may need a restart of your config or some lingering setup from Ivy is interfering...? 🤔
tmting · 2022-10-29 12:39
I have the same issue, but only when previewing some specific themes. The rest of them are previewed correctly. No idea why though
_chococat_ · 2022-10-31 21:10
Thank you! This does work. I guess I thought I had this behavior from `load-theme`, but it makes more sense that it works through `consult-theme`.
_chococat_ · 2022-10-31 21:11
Just a wild guess, but perhaps if you haven't allowed Emacs to run the Lisp code in a theme previously, you will not be able to preview it?