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
140 stars 34 forks source link

Faster Windows theme detection method #34

Closed quienn closed 1 year ago

quienn commented 1 year ago

This PR adds a theme detection method for Windows that uses w32-read-registry, which is the default unless auto-dark-allow-powershell is enabled.

A previous version of this PR used cmd and the reg command to query the registry, which is at most equally slower to the PowerShell implementation. Emacs still lacks multi-threading, that's why. :smile:

Fixes #30