LionyxML / auto-dark-emacs

Auto-Dark-Emacs is an auto changer between 2 themes, dark/light, following MacOS, Linux or Windows Dark Mode settings
GNU General Public License v2.0
153 stars 35 forks source link

Add a `manual` detection mode #73

Open sellout opened 3 hours ago

sellout commented 3 hours ago

I want a way for Auto-Dark to manage the pairs of themes & hooks, but to not do any auto-detection of system mode changes.

This is useful for testing, but also for niche systems that don’t have any of the existing systems. This is already possible, but some changes to make it more ergonomic:

[^1]: I prefer using nil for manual mode (read as “there is no detection method”), but perhaps it’s desirable to have a case where re-enabling the theme tries to re-detect the method (as it does now). I think I would prefer having a public auto-dark-determine-detection-method command that users can explicitly call if they want to re-detect.

sellout commented 3 hours ago

Ah, and manual mode should also not run the timer.