Function: auto-dark--set-theme
auto-dark--set-theme is a natively compiled function defined in
auto-dark.el.
Signature
(auto-dark--set-theme APPEARANCE)
Documentation
Set light/dark theme Argument APPEARANCE should be light or dark.
Source Code
;; Defined in /nix/store/fxsazwcy8jcsigjhcydkb81ip47xqcw0-emacs-packages-deps/share/emacs/site-lisp/elpa/auto-dark-20260313.2356/auto-dark.el
(defun auto-dark--set-theme (appearance)
"Set light/dark theme Argument APPEARANCE should be light or dark."
;; This can be called during custom variable initialization, so ensure we only
;; do it once we’re certain initialization is far enough along.
(when (auto-dark--initialized-p)
(setq auto-dark--last-dark-mode-state appearance)
(auto-dark--update-frame-backgrounds appearance)
(auto-dark--enable-themes (auto-dark--themes-for-mode appearance))
(run-hooks (pcase appearance
('dark 'auto-dark-dark-mode-hook)
('light 'auto-dark-light-mode-hook)))))