You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If emacs-macport is launched when Dark Mode is active, the theme is not switched to the dark theme.
However, if I toggle Dark Mode (off, then on) the theme is switched.
The emacs-macport hook mac-effective-appearance-change-hook is set to auto-dark--check-and-set-dark-mode. This is working very well, though only when Dark Mode is actively toggled.
The aforementioned hook is not invoked when emacs starts, so there should be a mechanism at startup to check and set the dark mode.
In my configuration, I've solved this by adding auto-dark--check-and-set-dark-mode to emacs-startup-hook, though there is a flash of the light theme. I think that the flash of light can be avoided by utilising before-make-frame-hook in early-init.el.
The text was updated successfully, but these errors were encountered:
what-the-functor
changed the title
In emacs-macport, only switches to dark theme whenl Dark Mode is toggled
In emacs-macport, only switches to dark theme when Dark Mode is toggled
May 18, 2024
If emacs-macport is launched when Dark Mode is active, the theme is not switched to the dark theme.
However, if I toggle Dark Mode (off, then on) the theme is switched.
The emacs-macport hook
mac-effective-appearance-change-hook
is set toauto-dark--check-and-set-dark-mode
. This is working very well, though only when Dark Mode is actively toggled.The aforementioned hook is not invoked when emacs starts, so there should be a mechanism at startup to check and set the dark mode.
In my configuration, I've solved this by adding
auto-dark--check-and-set-dark-mode
toemacs-startup-hook
, though there is a flash of the light theme. I think that the flash of light can be avoided by utilisingbefore-make-frame-hook
inearly-init.el
.The text was updated successfully, but these errors were encountered: